10.07.2015 Views

Mplus Users Guide v6.. - Muthén & Muthén

Mplus Users Guide v6.. - Muthén & Muthén

Mplus Users Guide v6.. - Muthén & Muthén

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples: Monte Carlo Simulation StudiesEXAMPLE 12.9: MONTE CARLO SIMULATION STUDY FORA TWO-PART (SEMICONTINUOUS) GROWTH MODEL FORA CONTINUOUS OUTCOMETITLE: this is an example of a Monte Carlosimulation study for a two-part(semicontinuous) growth model for acontinuous outcomeMONTECARLO:NAMES = u1-u4 y1-y4;NOBSERVATIONS = 500;NREPS = 100;GENERATE = u1-u4(1);MISSING = y1-y4;CATEGORICAL = u1-u4;MODEL POPULATION:iu su | u1@0 u2@1 u3@2 u4@3;[u1$1-u4$1*-.5] (1);[iu@0 su*.85];iu*1.45;iy sy | y1@0 y2@1 y3@2 y4@3;[y1-y4@0];y1-y4*.5;[iy*.5 sy*1];iy*1;sy*.2;iy WITH sy*.1;iu WITH iy*0.9;MODEL MISSING:[y1-y4@15];y1 ON u1@-30;y2 ON u2@-30;y3 ON u3@-30;y4 ON u4@-30;ANALYSIS: ESTIMATOR = MLR;383

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!