Save within-person regression residua... PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
 Kate Barford posted on Sunday, February 05, 2017 - 3:51 pm
Hi There,

I was wondering if there is a way to save the residuals for a within-person model and then use them in a subsequent between level model.

So I am hoping to save the residuals for

X on YZ

and then predict it in a model like this:


X_resid ON A B C D;

Is this possible? If not is there any way to control for the within person relations between a DV and and a couple IVs whilst predicting that DV with different IVs at the between level?

Thank you
 Bengt O. Muthen posted on Monday, February 06, 2017 - 3:46 pm
I don't think you want to work with residuals - model it instead. Why not say

X on YZ;
X on A B C D;

where the between-level X is the random intercept in the regression of X on YZ.
 Kate Barford posted on Tuesday, February 07, 2017 - 3:57 pm
Thank you for your reply.

So the within and between models are not independent of one another?

Does this mean in any model where you use the same DV at the within and between level, the between DV will be the residual of the original DV with the variance it shares with the within predictors removed?
 Bengt O. Muthen posted on Wednesday, February 08, 2017 - 2:23 pm
Q1: No

Q2: X on the between level is not a residual, but I would not focus on residuals.

You may want to ask this question on Multilevelnet.
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Enable HTML code in message
Automatically activate URLs in message