Monte carlo study with GMM PreviousNext
Mplus Discussion > Growth Modeling of Longitudinal Data >
 Gary Chan posted on Friday, July 06, 2012 - 9:51 pm
Hi everyone,

I am trying to do a Monte carlo study. I have generated 500 sets of data in R and use the command

file is mydatalist.txt;
type = montecarlo;

to read the data into mplus. I am wondering if i can save the result for each of the analysis (for example, the parameter estimates for each set of data, the BIC and AIC, average assignment probabilities, etc)?

Thank you very much!
 Linda K. Muthen posted on Saturday, July 07, 2012 - 12:08 pm
See the RESULTS option of the MONTECARLO command.
 Gary Chan posted on Monday, July 09, 2012 - 12:15 am
Dear Prof. Muthen,

Thank you very much for your reply. I have tried using the results option in montecarlo command with the following syntax

Results = result.sav
File is mydatalist.txt;
type = montecarlo;

But I got the following errors

*** ERROR in DATA command
The DATA command is not available in conjuction with the MONTECARLO command.

Can you please advise what I need to do to resolve the problem?

Thank you!
 Linda K. Muthen posted on Monday, July 09, 2012 - 6:25 am
Please see the examples in Chapter 12 to see how a Monte Carlo analysis is set up. Step 2 of Example 12.6 shows how to use TYPE=IMPUTATION. See also Chapter 19 which describes the MONTECARLO command.
 Gary Chan posted on Tuesday, July 10, 2012 - 6:04 pm
Thank you very much for your help!
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