How to create multiple linear regression ? NEED HELP
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
Hi,
I would like to regress Q with 3 response functions X,Y and Z (like this Q=a+bX+cY+dZ) (Where Q, X, Y and Z are matrice [129x1])
Does anyone know what is the function that can I use for that?
Antworten (1)
the cyclist
am 8 Feb. 2015
0 Stimmen
If you have the Statistics Toolbox, you can do this with the mvregress function.
2 Kommentare
Mr LE
am 8 Feb. 2015
Bearbeitet: the cyclist
am 8 Feb. 2015
the cyclist
am 8 Feb. 2015
I believe you need to add a constant vectors of ones to your predictor matrix, to estimate the constant term:
X = [ones(129,1) g(1).b g(1).c g(1).d g(1).e]
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!