I've got two models, the first model is my original model:
# Order Original
model_order_comparison = Energy ~ log(NonFat) + log(totmass)
glm_order <- glm(model_order_comparison, family=Gamma(link="log"), data=energy)
anova(glm_order , test="F")
The second model has the parameters in reverse order. Why does this matter?
# Order Reversed
model_order_comparison = Energy ~ log(totmass) + log(NonFat)
glm_order <- glm(model_order_comparison, family=Gamma(link="log"), data=energy)
anova(glm_order , test="F")
What's interesting is the results are different. My question is why?
I thought the order of parameters doesn't matter?!??!?
I found this, but I'm not sure it's relevant. I'm not using any multiplication or interactions in my formula.
Does the order of explanatory variables matter when calculating their regression coefficients?