[R] Testing random effect in logistic mixed model

2007-04-03 Thread Julien
Hi When using linear mixed model, I could test for the effect of the random part of the model using a likelihood ratio test comparing two model with and without the random part. model.lmer=lmer(y~x+(1|r)) model.lm = lm(y~x) anova(model.lmer,model.lm) However, this does not work with a mixed model

[R] Testing random effect in logistic mixed model

2007-03-30 Thread Julien
Hi When using linear mixed model, I could test for the effect of the random part of the model using a likelihood ratio test comparing two model with and without the random part. model.lmer=lmer(y~x+(1|r)) model.lm = lm(y~x) anova(model.lmer,model.lm) However, this does not work with a mixed mode