how to check the 'contribution' of each predictor in a linear regression
4 次查看(过去 30 天)
显示 更早的评论
I have linear regression model, say with 5 predictors,
. I wanted to know how we can perform tests regarding the 'contribution' of each predictor.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/195616/image.png)
Does matlab have a function that tests all possible subsets of predictors and outputs the error?
Thanks
0 个评论
采纳的回答
Star Strider
2018-11-19
You are describing a stepwise multiple linear regression. Seee the documentation on the stepwiselm (link) function and its friends for details.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!