Skip to content
Prev 108842 / 398500 Next

ANOVA Table for Full Linear Model?

Jason R. Finley wrote:
The logical thing to do would be (please avoid calling methods like 
anova.lm directly)

# following example(anova.lm):
Analysis of Variance Table

Model 1: sr ~ 1

Model 2: sr ~ pop15 + pop75 + dpi + ddpi

  Res.Df    RSS Df Sum of Sq      F    Pr(>F)    

1     49 983.63                                  

2     45 650.71  4    332.92 5.7557 0.0007904 ***


If you really want the column of MS, you have a little extra work to do. 
Notice also that the F test is part of the standard summary(fit)