Open KathyGCY opened 6 years ago
What is the Python statsmodels equivalent for R step() function of stepwise regression with AIC as criteria?
I found a stepwise regression with p-value as criteria, is there something similar, but with AIC?
I'm also okay with other python packages.
I don't know of any function.
My guess is that something like this loop can be adjusted to use aic instead of https://planspace.org/20150423-forward_selection_with_statsmodels/ link from #1809
What is the Python statsmodels equivalent for R step() function of stepwise regression with AIC as criteria?
I found a stepwise regression with p-value as criteria, is there something similar, but with AIC?
I'm also okay with other python packages.