Anova, Hypothesis Testing, R, Data Science, Statistics.
anova(lm(count~spray, data = InsectSprays)) oneway Running lm() under anova() returns the ANOVA table as shown above(and, of course, t he result with aov() is the same too). This table may look confusing in the first place, but it is not in fact. Df indicates the ‘degree of freedom’, Sum Sq shows