フィルターのクリア

store residuals of fitlm model

9 ビュー (過去 30 日間)
Christoph Meier
Christoph Meier 2015 年 8 月 13 日
コメント済み: Qinyao Zhou 2019 年 12 月 4 日
Dear Matlab community,
I made a multiple time series regression model, using the command
M1 = fitlm(model,Y)
I now would like to store the residuals as a separate variable.
the command
Resid1 = residuals(M1)
does not work somehow, as it says it is for mixed effect models.
What would be the right command for a fitlm model?
Thank you very much in advance!
Chris

採用された回答

Christoph Meier
Christoph Meier 2015 年 8 月 13 日
I found the answer myself! Hope this helps fellow Rookies:
for raw residuals:
VARIABLENAMEFORRESIDUALS = MODELNAME.Residuals.Raw
You can alternatively store standardised residuals, see link:
  1 件のコメント
Qinyao Zhou
Qinyao Zhou 2019 年 12 月 4 日
thank you! Great help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVerification, Validation, and Test についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by