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.2: MONTE CARLO SIMULATION STUDY FORA LINEAR GROWTH MODEL FOR A CONTINUOUSOUTCOME WITH MISSING DATA WHERE ATTRITION ISPREDICTED BY TIME-INVARIANT COVARIATES (MAR)TITLE: this is an example of a Monte Carlosimulation study for a linear growth modelfor a continuous outcome with missing datawhere attrition is predicted by timeinvariantcovariates (MAR)MONTECARLO:NAMES ARE y1-y4 x1 x2;NOBSERVATIONS = 500;NREPS = 500;SEED = 4533;CUTPOINTS = x2(1);MISSING = y1-y4;MODEL POPULATION:x1-x2@1;[x1-x2@0];i s | y1@0 y2@1 y3@2 y4@3;[i*1 s*2];i*1; s*.2; i WITH s*.1;y1-y4*.5;i ON x1*1 x2*.5;s ON x1*.4 x2*.25;MODEL MISSING:[y1-y4@-1];y1 ON x1*.4 x2*.2;y2 ON x1*.8 x2*.4;y3 ON x1*1.6 x2*.8;y4 ON x1*3.2 x2*1.6;MODEL: i s | y1@0 y2@1 y3@2 y4@3;[i*1 s*2];i*1; s*.2; i WITH s*.1;y1-y4*.5;i ON x1*1 x2*.5;s ON x1*.4 x2*.25;OUTPUT: TECH9;In this example, missing data are generated to illustrate both randommissingness and attrition predicted by time-invariant covariates (MAR).This Monte Carlo simulation study can be used to estimate the power todetect that the binary covariate x2 has a significant effect on the growth369

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

Saved successfully!

Ooh no, something went wrong!