Problem with correlation between intercept and slope
Posted: Thu Feb 23, 2017 4:20 pm
Dear forum
I am struggeling with a problem concerning the correlation between random intercept and random slope. I would be very helpful for some advice.
I am running a random-intercept-random-slope model with two levels (students within classes). My DV is math achievement, my IV is SES (socio-economic status of parents).
This is the model (SES is groupmean-centered):
MATHij = β0j + β1j*(SESij) + rij
β0j = γ00 + u0j
β1j = γ10 + u1j
My problem is, that I receive different results for the correlation between random intercept and random slope:
- If I use the covariance between intercepts and slopes, the variance of the intercepts and the variance of the slopes (all provided in the normal output), the correlation is r = 0.224
- If I save the residuals of the intercepts and slopes and correlate them, the correlation is r = 0.380
Does anybody know, what the reason for the different values of the correlation is?
Best
Max
I am struggeling with a problem concerning the correlation between random intercept and random slope. I would be very helpful for some advice.
I am running a random-intercept-random-slope model with two levels (students within classes). My DV is math achievement, my IV is SES (socio-economic status of parents).
This is the model (SES is groupmean-centered):
MATHij = β0j + β1j*(SESij) + rij
β0j = γ00 + u0j
β1j = γ10 + u1j
My problem is, that I receive different results for the correlation between random intercept and random slope:
- If I use the covariance between intercepts and slopes, the variance of the intercepts and the variance of the slopes (all provided in the normal output), the correlation is r = 0.224
- If I save the residuals of the intercepts and slopes and correlate them, the correlation is r = 0.380
Does anybody know, what the reason for the different values of the correlation is?
Best
Max