Alex posted on Thursday, January 26, 2006 - 2:14 pm
I am working on a multilevel analysis and need to control for the effects of an extraneous between level variable on the between level variance of a dependent variable (the dependent variable exists on the between and witnin levels).
For various reasons, I cannot include the independent variable directly in the full analysis. Hence, I am attempting to control for the effects of the independent variable by creating a new variable. This variable would be created by regressing (at the between level) the dependent variable on the independent variable and then using the regression residuals as the new variable. Is there any way to save the regression residuals for each case in the dataset using Mplus 3.12?