Re: [R] Selection of regressors

2013-08-25 Thread Adams, Jean
Note that this message is cross-posted in cross-validated ... http://stats.stackexchange.com/questions/68250/selection-of-regressors Jean On Sat, Aug 24, 2013 at 11:48 AM, beginner wrote: > I have a question about the package leaps which I am using for model > selection. > > I would like to co

[R] Selection of regressors

2013-08-24 Thread beginner
I have a question about the package leaps which I am using for model selection. I would like to compare 4 different selection methods: forward, backward, stepwise and best subset. I used the code below: library(leaps) forward <- regsubsets(Response ~.,data = mydata, method = "forward", nbest=1) b