Stepwise regression with no Constant
Show older comments
Matlab includes a constant as a default ..... is it possible to do a stepwise regression in Matlab without a constant? Thanks
Answers (1)
Oleg Komarov
on 31 May 2011
An example:
load hald
stepwise(ingredients,heat)
1 Comment
Lev Prislan
on 24 Aug 2016
It does say: "stepwise automatically includes a constant term in all models. Do not enter a column of 1s directly into X."
Categories
Find more on Linear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!