[R] Evaluating the significance of the random effects in GLMM

Gabriela Agostini gabrielaagostini18 at gmail.com
Wed Jan 23 14:24:16 CET 2013


Hi all!

I am working with GLMM using the binomial family
I use the following codes

I dropped no significant terms, refitting the model and comparing the
changes with likelihood:

G.1<-lmer(data$Ymat~stu+spi+stu*sp1+(1|ber),data=data,family="binomial")

G.1b<-lmer(data$Ymat~stu+spi+(1|ber),data=data,family="binomial")

anova (G.1,G.2)

But, when I want to evaluate the significance of random effect (1|ber)
I cannot use a likelihood-ratio test, probably because the link
function of both models is different.


Can anyone help me?
Thanks!

Gabriela



More information about the R-help mailing list