Re: [R] backward stepwise model selection

2012-10-26 Thread Ben Bolker
Hui Du dataventures.com> writes: > I know in R there is function named 'step', which does the > stepwise regression and choose the model by AIC. > However, if I want to choose a model per this logic: > > 1. Run a full model (linear regression, f = lm(y ~., data = ZZZ), >for example)

[R] backward stepwise model selection

2012-10-26 Thread Hui Du
Hi All, I know in R there is function named 'step', which does the stepwise regression and choose the model by AIC. However, if I want to choose a model per this logic: 1. Run a full model (linear regression, f = lm(y ~., data = ZZZ), for example) 2. Pick up the variable with bi