Skip to content
Prev 10109 / 20628 Next

categorical random effects correlation in lme4

Hi Andrew,

I think one of the problems is that in your model fm1_ml does not what you want. In this model you only estimate the random slopes but *not* the random intercepts for the prmiary_ther. As the lme4 faq (http://glmm.wikidot.com/faq) explains:

(0+x|group): 	random slope of x within group: no variation in intercept

What you want is one of the following:

(x|group): 	random slope of x within group with correlated intercept
(1|group) + (0+x|group): 	uncorrelated random intercept and random slope within group


I hope this helps,
Henrik


Am 21/05/2013 17:41, schrieb Andrew McAleavey: