Section 33 MLR Multiple Variables: ANOVA
33.1 Analysis of Variance Table
\[ \large fm \leftarrow lm(SBP \sim BMI + Age + Income + DM + Ethnic, \space data=BP) \]
\[ \large anova(fm) \]
Df | Sum Sq | Mean Sq | F value | Pr(>F) | |
---|---|---|---|---|---|
BMI | 1 | 15103.0386 | 15103.0386 | 5376.2201 | 0.0000 |
Age | 1 | 335.4035 | 335.4035 | 119.3934 | 0.0000 |
Income | 1 | 0.0121 | 0.0121 | 0.0043 | 0.9478 |
DM | 1 | 2061.7778 | 2061.7778 | 733.9299 | 0.0000 |
Ethnic | 2 | 0.0168 | 0.0084 | 0.0030 | 0.9970 |
Residuals | 493 | 1384.9504 | 2.8092 | NA | NA |
Total | 499 | 18885.1991 | NA | NA | NA |