|
|
2 Questions about Monte Carlo Simulat... |
|
Message/Author |
|
|
Q2, I can't used the commend "DEFINE" in Monte Carlo environment for furhter manipulate data? I mean, we will check the effect of coarsed scale. So, we need a simulation with continuuos data, and another simulation with categorcal data obtained form previus continuous. Then, I add the following commands in above mplus code. ----------- DEFINE: IF(R1>3)THEN R1=5; IF(1<R1 AND R1<=3)THEN R1=4; IF(-1<R1 AND R1<=1)THEN R1=3; IF(-3<R1 AND R1<=-1)THEN R1=2; IF(R1<=-3)THEN R1=1; ---------- But, it shows *** ERROR in DEFINE command The DEFINE command is not available in conjuction with the MONTECARLO command. Is there other methods to do this? Sam |
|
|
You can use the DEFINE command with external Monte Carlo. See Example 12.6. |
|
Back to top |
|
|