In R, the drop1
command outputs something neat.
These two commands should get you some output:
example(step)#-> swiss
drop1(lm1, test="F")
Mine looks like this:
> drop1(lm1, test="F")
Single term deletions
Model:
Fertility ~ Agriculture + Examination + Education + Catholic +
Infant.Mortality
Df Sum of Sq RSS AIC F value Pr(F)
<none> 2105.0 190.69
Agriculture 1 307.72 2412.8 195.10 5.9934 0.018727 *
Examination 1 53.03 2158.1 189.86 1.0328 0.315462
Education 1 1162.56 3267.6 209.36 22.6432 2.431e-05 ***
Catholic 1 447.71 2552.8 197.75 8.7200 0.005190 **
Infant.Mortality 1 408.75 2513.8 197.03 7.9612 0.007336 **
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
What does all of this mean? I'm assuming that the "stars" help in deciding which input variables are to be kept. Looking at the output above, I want to throw away the "Examination" variable and focus on the "Education" variable, is interpretation this correct?
Also, the AIC value, lower is better, yes?
Ed. Please note the Community Wiki answer below and add to it if you see fit, to clarify this output.