I am comparing mixed models in R using anova. My model m5 has one of the variables from model m4 omitted and I want to compare the 2 models to see if the dropped variable was significant.
Comparing the 2 models - the difference in AIC values is less than 3, so does this mean the variable isn't really significant? Using anova the AIC values in the output are different - what does this mean?
Thanks.:)
> m4 <- lmer(fr_per_fl ~ ele+prox+sl+veg+h+trunk+can+gap+th+(1|orc), DataT)
> AIC(m4)
[1] 43.0984
> m5 <- lmer(fr_per_fl ~ ele+prox+sl+veg+h+trunk+can+gap+(1|orc), DataT)
> AIC(m5)
[1] 40.54589
> anova(m5,m4)
refitting model(s) with ML (instead of REML)
Data: DataT
Models:
m5: fr_per_fl ~ ele + prox + sl + veg + h + trunk + can + gap + (1 | orc)
m4: fr_per_fl ~ ele + prox + sl + veg + h + trunk + can + gap + th + (1 | orc)
Df AIC BIC logLik deviance Chisq Chi Df Pr(>Chisq)
m5 20 -26.007 -5.1163 33.003 -66.007
m4 21 -47.716 -25.7809 44.858 -89.716 23.709 1 1.121e-06 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1