Skip to content
Prev 12755 / 20628 Next

interpretation of categorical crossed effect in lme4

The random effect for x2 is giving the variation in the effect of x2, that
is the difference in levels (from x2=0 to x2=1), with id.

I would first try the model, and see if it improves AIC.

y ~ x1 + x2 +  (1 +x2 | group)

This now allows for the random effects for the intercept and x2 to be
correlated

On 7 December 2014 at 02:12, Andrew McAleavey <andrew.mcaleavey at gmail.com>
wrote: