Thank you for your help. I just tried "leaps". However, I still need to know the regression coefficients for each regression. Seems leaps doesn't provided the coefficients.
Lily --- kjetil brinchmann halvorsen <[EMAIL PROTECTED]> wrote: > On 31 Aug 2003 at 18:06, Lily wrote: > > > Have you tried > library(leaps) > library(help=leaps) > ? > > Kjetil Halvorsen > > > Dear All, > > > > I would like to perform linear regressions based > on Y > > and all of the combinations of the five > predictors, > > > i.e.,(y,x1,x2),(y,x1,x3),....,(y,x1,x2,x4,x5),....,(y,x1,x2,x3,x4,x5). > > > > Is there any quick way to do it instead of repeat > > performing regressions for 31 times? Or, is there > > any method to manipulate the dataset into the 31 > > combinations? > > > > Thanks for your help! > > > > ______________________________________________ > > [EMAIL PROTECTED] mailing list > > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
