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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Getting Started With <strong>Mplus</strong>TITLE: this is an example of a MIMIC modelwith two factors, six continuous factorindicators, and three covariatesDATA: FILE IS mimic.dat;VARIABLE: NAMES ARE y1-y6 x1-x3;MODEL: f1 BY y1-y3;f2 BY y4-y6;f1 f2 ON x1-x3;The second example shows the input file for a growth model with timeinvariantcovariates. It illustrates the new simplified <strong>Mplus</strong> language forspecifying growth models.TITLE: this is an example of a linear growthmodel for a continuous outcome at fourtime points with the intercept and slopegrowth factors regressed on two timeinvariantcovariatesDATA: FILE IS growth.dat;VARIABLE: NAMES ARE y1-y4 x1 x2;MODEL: i s | y1@0 y2@1 y3@2 y4@3;i s ON x1 x2;The third example shows the input file for a latent class analysis withcovariates and a direct effect.TITLE: this is an example of a latent classanalysis with two classes, one covariate,and a direct effectDATA: FILE IS lcax.dat;VARIABLE: NAMES ARE u1-u4 x;CLASSES = c (2);CATEGORICAL = u1-u4;ANALYSIS: TYPE = MIXTURE;MODEL:%OVERALL%c ON x;u4 ON x;The fourth example shows the input file for a multilevel regressionmodel with a random intercept and a random slope varying acrossclusters.15

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

Saved successfully!

Ooh no, something went wrong!