Anonymous posted on Wednesday, April 27, 2005 - 6:09 am
Just a quick question. I am working on developing a monte carlo CFA simulation that requires Likert type data (e.g., 1=strongly disagree, 2=disagree, 3=agree, 4=strongly agree). This is not a situation where I have the data before hand, so I will have to simulate the data from scratch. In other words, I want to restrict the data generation to numbers between 1-4. How can I tell Mplus that I want 6 independent variables that have the Likert type data? I understand the code for the 6 independent variables, but not the restriction of the data between 1-4. Please, would you give me an example of this restriction using the Mplus code? Thank you, in advance, so much for the help.
bmuthen posted on Wednesday, April 27, 2005 - 6:27 am
You use a setup in line with ex 5.10, which exists in a Monte Carlo version on the Mplus CD. Here, you specify that the outcome is categorical with a certain number of thresholds (#thresholds = #categories minus 1). The theshold values give the probabilities of being in each category.
hamy temkit posted on Monday, September 13, 2010 - 3:38 pm
I appreciate any input you could have on this. I would like to run a monte carlo power multigroup analysis, using the cutpoints option to define my grouping variable and would like to, not recourse to generating external files to do so but rather run basically the simulation in one step. Here is a snippet of my code. I am getting an error message regarding grouping option not being recognized. I am not surprised since we are not using the DATA option. Is there a way to tweek the code in order to do this. I have an Mplus License and can send you my code if needed. Thanks.
TITLE: MONTE CARLO POWER
MONTECARLO: names are x y1 y2 y3 y4; cutpoints = x(0) ; nobs = 2000; nreps = 1000; seed = 2224; ngroups = 2; grouping is x (0=G1 1=G2);
Model population: Model population-G1: Model population-G2