Multivariate Regression
Mostrar comentarios más antiguos
Hi all,
How can I perform a multivariate regression? My dependent variable Y has n rows and m columns. I have z independent variables, which have n rows, but columns size is variable. So I want to regress: Y(n*m)=X1(n*1)+X2(n*5)+...+Xp(n*p) Can anyone help?
Many Thanks!
Respuestas (2)
the cyclist
el 6 de En. de 2012
1 voto
If you have the Statistics Toolbox, you can do this with the mvregress() function.
Léon
el 11 de En. de 2012
0 votos
Or you might use the following function that does not require the statistics toolbox to be installed
I will add a STATA like output in the command window as well in the near future.
Categorías
Más información sobre Linear Regression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!