Skip to content
Prev 278174 / 398506 Next

help to setting a multiple (linear) regression model with a 5% significance level (threshold) for the inclusion of the model variables.

On 22/11/2011 16:30, gianni lavaredo wrote:
That is not what step() does.  Please do read the help page!

Description:

      Select a formula-based model by AIC.

Note, 'by AIC'.

Now, as Frank Harrell says here often, stepwise methods are inadmissible 
for prediction, and in addition stepwise F-test methods are always 
invalid as they ignore multiple testing.  So you won't find such methods 
prominently available in R (and all the stepwise methods I am aware of 
in R packages use AIC or similar).

The author of step()
Please do not send HTML when expressly asked not to.