この質問は閉じられています。 編集または回答するには再度開いてください。

How to create multiple linear regression ? NEED HELP

1 ビュー (過去 30 日間)
Mr LE 2015 年 2 月 7 日
終了済み: MATLAB Answer Bot 2021 年 8 月 20 日
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?

回答 (1 件)

the cyclist
the cyclist 2015 年 2 月 8 日
If you have the Statistics Toolbox, you can do this with the mvregress function.
  2 件のコメント
the cyclist
the cyclist 2015 年 2 月 8 日
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]

Community Treasure Hunt

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

Start Hunting!

Translated by