1

I know that the stepAIC function in R allows us to perform stepwise regression but I was wondering if there's any option (or other function) to perform a F-statistic based stepwise regression ?

I've looked in the help of the stepAIC function but didn't find any answer.

Thanks a lot

1 Answers1

1

So I've found the answer I was looking for. The dropterm function for the MASS package allows us to perform backwards variable selection using any statistic we want. The equivalent function addterm allows to do the same with forward regression.

To do so, you simply need to add the argument test=c("none","Chisq","F") for the statistic you want. Keep in mind that the F-statistic selection only works for model of the class lm and aov.