I'm trying to save model-predicted values in a growth curve model. The user guide explains how to save factor scores, but not how to do it for simpler growth models and I was unable to find a solution on the forums. Is this possible in the current version of Mplus?
Reviewers have requested we calculate the reliable change index and due to missing data, I've assumed that using predicted values would be the best route. Am I missing a better alternative?
Use the CPROBABILITIES option of the SAVEDATA command.
Helen Li posted on Saturday, September 20, 2014 - 8:24 am
Thank you, Professor! But if I simulated 100 sets of data, can I obtain class probabilities and most likely class membership for all these runs using some functions in MPlus? I hope my question makes sense. Thanks!
Helen Li posted on Saturday, September 20, 2014 - 4:19 pm
Dear Professor, as per my last question, I'm pasting the codes:
Title: New data sets to be saved data: FILE IS simlist.dat; !a file that contains a list of names of the generated data Type = Montecarlo; variable: names are y1-y4 x1 x2 c0; USEVARIABLES ARE y1-y4; classes = c(2); Auxiliary = x1 x2; analysis: Type = mixture; model: %overall% i s | y1@0y2@1y3@2y4@3; i* s*; i with s*; y1-y4*(ve); [c#1*0]; %c#1% [i*]; [s*]; %c#2% [i*]; [s*]; Output:Tech9; savedata: FILE IS simp.dat; save = cprobabilities;
The codes ran very well except that I got the following warnings and so I couldn't save the new data sets. May I know how can I get the new data sets?
"*** WARNING in SAVEDATA command The FILE option is not available for TYPE=MONTECARLO or TYPE=IMPUTATION. The FILE option will be ignored. *** WARNING in SAVEDATA command The SAVE option is not available for TYPE=MONTECARLO or TYPE=IMPUTATION. The SAVE option will be ignored. 2 WARNING(S) FOUND IN THE INPUT INSTRUCTIONS"