Re: [R] All combinations possible in a mutliple regression

2012-08-14 Thread zel7223
Leaps works :) Thanks a lot! JMF - Jean-Michel Fortin Étudiant au premier cycle en Biologie/ Undergraduate in Biology Lab Currie Université d'Ottawa/ Currie Lab University of Ottawa -- View this message in context: http://r.789695.n4.nabble.com/All-combinations-possible-in-a-mutliple-reg

Re: [R] All combinations possible in a mutliple regression

2012-08-11 Thread Greg Snow
Look at the leaps function in the leaps package. It will compute the Cp statistic which is a function of AIC. On Thu, Aug 9, 2012 at 7:28 AM, zel7223 wrote: > Hi, > > I want to use four independent variables to predict the output of one > dependent variable using a linear model lm. I want to com

Re: [R] All combinations possible in a mutliple regression

2012-08-09 Thread arun
9852 A.K. - Original Message - From: zel7223 To: r-help@r-project.org Cc: Sent: Thursday, August 9, 2012 9:28 AM Subject: [R] All combinations possible in a mutliple regression Hi, I want to use four independent variables to predict the output of one dependent variable using a linear mo

Re: [R] All combinations possible in a mutliple regression

2012-08-09 Thread arun
DF,  p-value: 0.7732 A.K. - Original Message - From: zel7223 To: r-help@r-project.org Cc: Sent: Thursday, August 9, 2012 9:28 AM Subject: [R] All combinations possible in a mutliple regression Hi, I want to use four independent variables to predict the output of one dependent variab

Re: [R] All combinations possible in a mutliple regression

2012-08-09 Thread Filoche
Try a look at this: http://stat.ethz.ch/R-manual/R-patched/library/MASS/html/stepAIC.html Regards, Phil -- View this message in context: http://r.789695.n4.nabble.com/All-combinations-possible-in-a-mutliple-regression-tp4639762p4639782.html Sent from the R help mailing list archive at Nabble.

[R] All combinations possible in a mutliple regression

2012-08-09 Thread zel7223
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 pi