0
$\begingroup$

Say I fit a multivariate model in R lm(Y~X1 + X2 + X3) and get a certain output for an ANOVA table.

Why does the ANOVA table ( using anova() ) for the model lm(Y ~ X1 + X3 + X2) produce different values for the Sum of Squares in the X3 row than in the first model?

I know the order matters, but could you explain further on how changing the order changes the Sum of Squares and corresponding p-value for X3?

$\endgroup$

1 Answer 1

1
$\begingroup$

I'm going to refer you to a website that explains this, instead of trying to recreate this article: https://mcfromnz.wordpress.com/2011/03/02/anova-type-iiiiii-ss-explained/

Long story short, look into type I/II/III ANOVA, it's about testing one effect then testing another, you're looking at it differently after you've separated out one effect.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.