I have two nested mixed models: the difference in these models is the presence of one predictor variable (type
). I used lmerTest
to obtain p-values for the model, and none except the intercept were significant. Can I still compare these models using anova
to say the predictor variable type
is (or is not) having an effect on the model?
m1 <- lmer(f2 ~ sex + type + (1|speaker))
m2 <- lmer(f2 ~ sex + (1|speaker))
anova(m1, m2)
type
has a significant effect $\endgroup$lmerTest
and ofanova
agree. I am not sure what exactly is then your question. $\endgroup$m1
andm2
is equivalent to testing whethertype
is a significant predictor inm1
. So runninganova(m1, m2)
and runninglmerTest
onm1
are just two different ways to test iftype
is significant. You can use either of these two ways, or both, if you like. You are testing the same thing two times. Does it make sense? $\endgroup$