Using fitlm for multiple linear model: Does this function automatically standardise the variables?
2 次查看(过去 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!
0 个评论
采纳的回答
Shashank Prasanna
2014-7-14
No fitlm doesn't not standardize your data. You will have to do this prior to calling fitlm:
2 个评论
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 Center 和 File 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!