[R] help for performing regressions based on combination of predictors
kjetil brinchmann halvorsen
kjetil at entelnet.bo
Mon Sep 1 04:10:27 CEST 2003
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!
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list