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

regressionStatistics and Machine Learning Toolboxstepwisefit

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.

Best Answer

There is a newer function that can do that:
load hald
stepwiselm(ingredients,heat,'Criterion','adjrsquared')
Related Question