I'm fitting a mixed model with a nesting structure that produces a correlation in the random intercept. I'm having a difficult time understanding the correlation coefficient and obtaining the correlation matrix for each individual (which might not be possible in R but seems possible in SAS?).
Here is an example model:
library(lme4)
dat <- sleepstudy
fit <- lmer(Reaction ~ Days + (1 + Days|Subject), data = dat)
summary(fit)
The output produces the following:
Random effects:
Groups Name Variance Std.Dev. Corr
Subject (Intercept) 612.09 24.740
Days 35.07 5.922 0.07
Residual 654.94 25.592
Number of obs: 180, groups: Subject, 18
Fixed effects:
Estimate Std. Error t value
(Intercept) 251.405 6.825 36.84
Days 10.467 1.546 6.77
Correlation of Fixed Effects:
(Intr)
Days -0.138
There is a random effect correlation of 0.07 between Days and the Intercept (reaction time). What is the best way to interpret this? Because I have the subject nested in the day, does this mean that this is the "repeated measures correlation" as detailed by Roy? I'm not 100% certain that it can be interpreted in this fashion because in the attached article, the author is using the actual correlation matrices for each individual subject (in SAS), which I can't seem to reproduce in R. It seems like calling these individual correlation matrices is unique to SAS. The paper has an example of her code but I am not familiar with the the SAS language enough to decipher how to re-create it in R (if possible).
Has anyone worked with repeated measures correlation in this fashion using R?