Using fitlm for multiple linear model: Does this function automatically standardise the variables?

조회 수: 3 (최근 30일)
Hi!
I just read about standardisation and that it is recommended to standardise variables in a multiple linear model. My question is now whether fitlm has done this automatically or if i need to do it?
Thank you for your help!

채택된 답변

Shashank Prasanna
Shashank Prasanna 2014년 7월 14일
No fitlm doesn't not standardize your data. You will have to do this prior to calling fitlm:
  댓글 수: 2
Tania
Tania 2014년 7월 15일
Great thank you. I am not quite sure if I need to standardise in my case. Do you have any experience when it is recommended to standardise and when one should not standardise? Thank you!
Shashank Prasanna
Shashank Prasanna 2014년 7월 15일
It depends on your problem. You can standardize variables if their ranges are not comparable. As an example if x1 (0,1) and x2 (1e5,1e12). Your interpretation of the linear regression coefficients will be different if you standardize since you are transforming your data.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Analysis of Variance and Covariance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by