Skip to content
Prev 18727 / 20628 Next

Meaning of Corr of random-effects with a cross-level interaction

Hi Thierry and list

This was actually cross-posted at CrossValidated yesterday:
https://stats.stackexchange.com/questions/488984/corr-of-random-effects-when-a-cross-level-interaction-in-lme4

I have the impression that Simon is experimenting with a toy dataset,
rather than analysing their own study, which is a great way to learn, in
my opinion.

As you can see from my answer and the comments to it, the real question
(actually, two questions) is this:

Suppose we have two groups of schools, with a single explanatory variable
at the student level. Suppose further that the correlation between the
random slopes for that variable and the random intercepts in the two groups
is very different.  The first question is what the overall correlation
represents ? I thought that it would probably be some kind of average of
the two.  I did some simulations that indicate that this seems to be the
case. The followup question (see the last comment to my answer) asks how to
uncover the correlations in the two groups ? From my simulations so far the
only way I can see of doing this is by splitting the data by group and
fitting two models.

Best regards
Robert Long



On Fri, Sep 25, 2020 at 9:04 AM Thierry Onkelinx via R-sig-mixed-models <
r-sig-mixed-models at r-project.org> wrote: