We can quickly apply the stepwise regression to our model by employing a convenient function named stepAIC from the MASS package by Brian Ripley and Bill Venables.
Let me give you a small lesson here, since I know you are an R enthusiast. This package was developed as a support to the relevant book Modern Applied Statistics with S authored by the same Brian Ripley and Bill Venables. So it can be considered as a father of R, since the latter was developed as an implementation of the first. R actually also has a brother, which is S-PLUS, a commercial edition of S. These two authors I mentioned, Brian and Bill, are actually two relevant contributors to the development of R, and the second is still an active member of its ...