Displaying 1 result from an estimated 1 matches for "femage".
Did you mean:
fdimage
2009 Aug 17
0
Model comparison with missing values
...avoid subsetting the data (by removing all
the NA values from all the variables before the analysis even begins) so
that the reduced model can then make use of all the available data for the
predictions?
The error example: (say 'pairexp' has 23 missing values)
lmm.1<-lmer(survival~Male+FemAge+pairexp+(1|ID),REML=FALSE,na.action=na.omit)
summary(lmm.1)
lmm.2<-update(lmm.1,.~.-pairexp)
summary(lmm.2)
anova(lmm.1,lmm.2)
lmm.2: survival ~ Male + FemAge + (1 | ID)
lmm.1: survival ~ Male + FemAge + pairexp + (1 | ID)
Df AIC BIC logLik Chisq Chi Df Pr(>Chisq)
lmm.1...