Skip to content
Prev 8644 / 20628 Next

mean and variance of random effects in glmer

Hi Thierry,

Thanks for your thoughts on this. I hadn't considered quasi-separation, but I don't think that is it. Actually, the issue is that I slipped into thinking that the random effects were the conditional means (like in a linear mixed effects model). Rather, they are the conditional modes. Thus, the mean of the random effects need not be zero as I initially expected (and as would be the case in a linear mixed effects model). 

But, I still expected the variance of the random effects to match the output (it is 18.9 in the output yet 7.8 when I calculate it on the random effects directly). 

Best wishes,
Ken
On Jul 24, 2012, at 5:23 AM, "ONKELINX, Thierry" <Thierry.ONKELINX at inbo.be> wrote: