Does stepwisefit function is able to evaluate using adjusted R-squared instead p-value?

4 views (last 30 days)
América H
América H on 7 Mar 2016
Commented: América H on 15 Mar 2016
I want to select the most relevant variables for a model. I use stepwise fit which evaluates individually by p-value, instead I want to evaluate by using adjusted R-Squared to have an idea of how much the selected variables explain the model.

Accepted Answer

Tom Lane
Tom Lane on 11 Mar 2016
There is a newer function that can do that:
load hald
stepwiselm(ingredients,heat,'Criterion','adjrsquared')

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!