Skip to content
Prev 18620 / 20628 Next

graphics to show crossed random-effects

Good afternoon,

Given lme4 package in R, I often show a random-intercept model (i.e., y~1 +
(1|grouping)) using a picture like:
https://github.com/hkil/m/blob/master/mlm.PNG.

I wonder how to extend this picture to show a fully crossed
random-intercepts model of the form: y~1 + (1|grouping_1) + (1|grouping_2) ?

Specifically, do I need to have 2 red, level-2 distributions (side-by-side)
each for showing the random intercepts of each grouping_j and if so, is
there any way to show the "crossing*"* of the two random-effects in the
picture?

Many thanks,
Simon