[R] All combinations possible in a mutliple regression

zel7223 jmichel.fortin at hotmail.fr
Thu Aug 9 15:28:58 CEST 2012


Hi,

I want to use four independent variables to predict the output of one
dependent variable using a linear model lm. I want to compare all possible
combinations of the 4 independent variables, including singles, pairs and
triples.

I was thinking of using the AIC test to compare all models and pick the best
one.

The model looks like this : 

lm(Y ~ X1 + X2 + X3 + X4)

Thanks for your help

Cheers

Jean-Michel Fortin
UOttawa



--
View this message in context: http://r.789695.n4.nabble.com/All-combinations-possible-in-a-mutliple-regression-tp4639762.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list