Structural Equation Model (SEM) Example B

Table of Contents

1 Title Command

TITLE:
Example 5b

2 Data Command

In this example a ".dat" file being used. It is the same as using a ".csv" file.

DATA:
FILE IS "../../data/insomnia.dat";

3 Variable Command

VARIABLE:
names are insom1-insom7 cesd1-cesd20 phy psy soc env;
usevariables are insom1-insom7 phy psy soc env;
missing all (999);

4 Model Command

Here the first four lines are used to set up the measurement of the four latent variables. For each latent variable the first indicator variable to the right of the "by" statement has a factor loading set to 1 (the Mplus default). The last line sets up the regression component of the model. Notice that the latent variable covariance is not specified, Mplus will provide that automatically.

MODEL:
  Impact by insom5 insom6 insom7;
  Severity by insom1 insom2 insom3;
  Satisf by insom4 insom1 insom7;
  Qol by phy psy soc env;
  Qol on Impact Severity Satisf;

Date: 2016-09-12T14:53-0500

Author: Benjamin Arthur Kite

Org version 7.9.3f with Emacs version 24

Validate XHTML 1.0