How should I understand the anova
result when comparing two models?
Example:
Res.Df RSS Df Sum of Sq F Pr(>F)
1 9 54.032
2 7 4.632 2 49.4 37.329 0.0001844 ***
The manpage states: "Compute analysis of variance (or deviance) tables for one or more fitted model objects." However, out professor mentioned that it may be employed for model comparison - that's what I intend to do.
Hence I assume I could use anova(model1, model2)
and obtain a p-value which tells me whether I should reject the null hypothesis: "the models are the same".
May I state that if the p-value is less then (let's say) 0.05, the models differ significantly?
Y ~ X + X^2
and the second oneY ~ X + X^2 + X^3
$\endgroup$