Re: [R] All possible linear models given multiple explaining variables

2009-07-22 Thread Paul Hiemstra
Thomas A. Groen wrote: Hi, I would like to have a script/function (or write one) that can calculate the linear models for all possible combinations of explaining variables. Eventually I would like to end up with a data base (or data frame) giving for each model the R2, R2adj, AIC etc. Currentl

Re: [R] All possible linear models given multiple explaining variables

2009-07-22 Thread Ben Bolker
hadley wrote: > > Have a look at the meifly package, which also includes tools for > visualising the resulting models. > Hadley > > On Wed, Jul 22, 2009 at 7:28 AM, Thomas A. Groen wrote: >> Hi, >> >> I would like to have a script/function (or write one) that can calculate >> the >> linear mod

Re: [R] All possible linear models given multiple explaining variables

2009-07-22 Thread hadley wickham
Have a look at the meifly package, which also includes tools for visualising the resulting models. Hadley On Wed, Jul 22, 2009 at 7:28 AM, Thomas A. Groen wrote: > Hi, > > I would like to have a script/function (or write one) that can calculate the > linear models for all possible combinations of

[R] All possible linear models given multiple explaining variables

2009-07-22 Thread Thomas A. Groen
Hi, I would like to have a script/function (or write one) that can calculate the linear models for all possible combinations of explaining variables. Eventually I would like to end up with a data base (or data frame) giving for each model the R2, R2adj, AIC etc. Currently I'm a bit stuck while wr