Skip to content
Prev 18753 / 20628 Next

Dropping correlations bet. random-effects in lme4 syntax

Thanks for the additional information about the use of `0+` in the context
of categorical variables:)

So, by splitting the specification of the grouping variable like:

lmer(y ~ A * B * C + (A * C | group) + (B|group) , data = data)

I get the below correlation matrix. So, here we have created 2 different
intercepts, one for each "split" of the same grouping variable, right?

I ask this because B has no correlation with the first split's (intercept)
but it has a singular correlation with the second split's (intercept). The
output looks confusing to a novice like me.


            (Intercept)      A      C    A:C (Intercept)  B
(Intercept)       1.000 -0.794 -0.195  0.953           0  0
A                -0.794  1.000  0.278 -0.854           0  0
C                -0.195  0.278  1.000  0.028           0  0
A:C               0.953 -0.854  0.028  1.000           0  0
(Intercept)       0.000  0.000  0.000  0.000           1 -1
B                 0.000  0.000  0.000  0.000          -1  1
On Sat, Oct 3, 2020 at 11:52 AM Phillip Alday <phillip.alday at mpi.nl> wrote: