Aggregating a standardized variable PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
 may_k posted on Thursday, January 03, 2019 - 9:47 am

I wish to standardize a level 1 variable and then aggregate it to level 2.

When I use the Define command as follows:

Define: standardize readss;

readss is standardized as expected, but classread is calculated as the cluster mean of the original variable, not the standardized variable. I assume I am doing something wrong?

Many thanks in advance.
 Bengt O. Muthen posted on Thursday, January 03, 2019 - 4:30 pm
The Mplus Users's Guide discusses this on pages 649 and 650. Variables that are used in STANDARDIZE cannot be used in subsequent DEFINE statements. If you want to standardize READSS and use those values in the CLUSTER_MEAN function, you must do this in 2 steps - first step is to standardize READSS and save the data. The second step is to use it in CLUSTER_MEAN.
 may_k posted on Friday, January 04, 2019 - 1:52 am
Thank you.
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