Hi, S-PLUS includes the function "stepwise" which can use a variety of methods to conduct stepwise multiple linear regression on a set of predictors. Does a similar function exist in R? I'm having difficulty finding one. If there is one it must be under a different name because I get an error message when I try 'help(stepwise)' in R. Thanks for your help, Andy Taylor
Have you considered stepAIC in library(MASS) or step? hth. spencer graves Andrew Taylor wrote:> Hi, > > S-PLUS includes the function "stepwise" which can use a variety of > methods to conduct stepwise multiple linear regression on a set of > predictors. Does a similar function exist in R? I'm having difficulty > finding one. If there is one it must be under a different name because > I get an error message when I try 'help(stepwise)' in R. > > Thanks for your help, > Andy Taylor > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Try, help.search("stepwise") It brings up the functions step() and stepAIC() from MASS. Andrew Taylor wrote:> Hi, > > S-PLUS includes the function "stepwise" which can use a variety of > methods to conduct stepwise multiple linear regression on a set of > predictors. Does a similar function exist in R? I'm having difficulty > finding one. If there is one it must be under a different name because > I get an error message when I try 'help(stepwise)' in R. > > Thanks for your help, > Andy Taylor > > > ------------------------------------------------------------------------ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help