Dear all ---
   I have 2 few questions regarding the random effects of a glmer model I
am running in lme4.

(1)
I would like to know whether I "need" a random effect in the model, so I
want to compare a model with vs. a model without random effect.
My final model is:
> m1<-glmer(a ~ b *c (1|d), family = binomial, data = data)
To what model do I compare this model? Is the following correct?
> m0<-glm(a ~ b*c, family = binomial, data = data)
> anova(m0,m1)
does not give likelihood values or compare model fit as it usually does.
What am I doing wrong?

(2)
I have not quite understood whether (1|d) is a random intercept, or a
random slope, or a random intercept random slope model.
Could you provide literature for lme4 that explains this?
Would you recommend comparing a baseline model to a random intercept model
to a random intercept random slope model to see what model is best to use?

Thank you very much
  Eiko

	[[alternative HTML version deleted]]

