Stepwise regression with no Constant
6 次查看(过去 30 天)
显示 更早的评论
Matlab includes a constant as a default ..... is it possible to do a stepwise regression in Matlab without a constant? Thanks
0 个评论
回答(1 个)
Oleg Komarov
2011-5-31
An example:
load hald
stepwise(ingredients,heat)
1 个评论
Lev Prislan
2016-8-24
It does say: "stepwise automatically includes a constant term in all models. Do not enter a column of 1s directly into X."
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!