O'Reilly logo

MATLAB for Machine Learning by Giuseppe Ciaburro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Stepwise regression in MATLAB

Stepwise regression is an automated tool used in the exploratory stages of model building to identify a useful subset of predictors. In MATLAB, to create a stepwise regression model, use the stepwiselm() function. This function returns a linear model for the variables in the table or dataset array passed using stepwise regression to add or remove predictors. The stepwiselm() function uses forward and backward stepwise regression to determine a final model. The method begins with an initial model, specified using the modelspec attribute, and then compares the explanatory power of incrementally larger and smaller models. The most significant variable is added, or the least significant variable is removed during ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required