I'm trying to figure out how to produce an ANOVA Table in R for a multiple regression model. So far I can only produce it for each regressor, and the Mean Square is calculating as the same as Sum Of Squares.
> anova(nflwin.lm)
Analysis of Variance Table
Response: wins
Df Sum Sq Mean Sq F value Pr(>F)
pass_yard 1 76.193 76.193 26.172 3.100e-05 ***
percent_rush 1 139.501 139.501 47.918 3.698e-07 ***
oppo_rush 1 41.400 41.400 14.221 0.0009378 ***
Residuals 24 69.870 2.911
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
I'm trying to produce something like
Analysis of Variance Table
Response: wins
Df Sum Sq Mean Sq F value Pr(>F)
Model 3 76.193 76.193 26.172 3.100e-05 ***
Residuals 24 69.870 2.911
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1