Borrar filtros
Borrar filtros

I have values for three different variables Z ,X,Y : how can i get the least square regression equation of Z on X and Y

2 visualizaciones (últimos 30 días)
I have values for three different variables Z ,X,Y : how can i get the least square regression equation of Z on X and Y

Respuestas (2)

the cyclist
the cyclist el 2 de Jun. de 2013
Editada: the cyclist el 2 de Jun. de 2013
You could use either the regress() function or the LinearModel.fit() function.
doc regress
or
doc LinearModel.fit
for details.
In each case, you'll need to combine your X and Y values into one array (predictor variables) and use Z for the response variable.

Image Analyst
Image Analyst el 2 de Jun. de 2013

Categorías

Más información sobre Linear Algebra en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by