[R] Automatic creation of binary logistic models

2011-08-04 Thread Paul Smith
Dear All, Suppose that you are trying to create a binary logistic model by trying different combinations of predictors. Has R got an automatic way of doing this, i.e., is there some way of automatically generating different tentative models and checking their corresponding AIC value? If so, could

Re: [R] Automatic creation of binary logistic models

2011-08-04 Thread Jeremy Miles
Sounds like you want a best subsets regression, the bestglm() function, found in the bestglm() package will do the trick. Jeremy On 4 August 2011 12:23, Paul Smith phh...@gmail.com wrote: Dear All, Suppose that you are trying to create a binary logistic model by trying different

Re: [R] Automatic creation of binary logistic models

2011-08-04 Thread Paul Smith
Wonderful! Thanks, Jeremy. Is bestglm() also able of trying nonlinear transformations of the variables, say log(X1) for instance? Paul On Thu, Aug 4, 2011 at 8:28 PM, Jeremy Miles jeremy.mi...@gmail.com wrote: Sounds like you want a best subsets regression, the bestglm() function, found in

Re: [R] Automatic creation of binary logistic models

2011-08-04 Thread Marc Schwartz
On Aug 4, 2011, at 2:23 PM, Paul Smith wrote: Dear All, Suppose that you are trying to create a binary logistic model by trying different combinations of predictors. Has R got an automatic way of doing this, i.e., is there some way of automatically generating different tentative models and

Re: [R] Automatic creation of binary logistic models

2011-08-04 Thread Paul Smith
On Thu, Aug 4, 2011 at 9:35 PM, Marc Schwartz marc_schwa...@me.com wrote: Suppose that you are trying to create a binary logistic model by trying different combinations of predictors. Has R got an automatic way of doing this, i.e., is there some way of automatically generating different