When I run these two in R, I get different values. I thought that I should get the same values since it just includes their interaction terms.
Asked
Active
Viewed 135 times
3
-
Did you check whether you got the same predictions? – Matthew Drury May 26 '15 at 14:30
-
they are the same. I am more interested in analyzing each coefficient to see how well they fit the model. I don't understand why B * C * D is different than C * B * D for the interaction terms, I assumed order doesn't matter – kevin May 26 '15 at 14:33
-
I'd suggest checking which main effects made it into each model. – Matthew Drury May 26 '15 at 14:38
-
the main effects all have very similar p-values and slopes. I am interested in the interaction terms. Which have changed drastically. – kevin May 26 '15 at 14:41
-
1Not only the slopes have changed, but what the interaction terms represent have also changed. – Matthew Drury May 26 '15 at 14:53
-
Possible duplicate of The order of variables in ANOVA matters, doesn't it? – mkt Jul 12 '18 at 14:21