필터 지우기
필터 지우기

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 CenterFile Exchange에서 Verification, Validation, and Test에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by