Confirmatory Factor Analysis of Alcohol Usage
WLSMV Estimates with Categorical Data and Listwise Deletion of Missing Values

Chong Xing, Meghan Fager, Paul Johnson (cxing@ku.edu, megfager@ku.edu, pauljohn@ku.edu)

Center for Research Methods and Data Analysis, University of Kansas

Abstract:

Tags:

2018-07-20

Table of Contents

1 Title Command

TITLE:
  Example 7
Health Behavior in School Children
Confirmatory Factor Analysis with Ordinal-Categorical Data using WLSMV
1-Factor Graded Response IRT Model for Alcohol;

2 Data Command

DATA:
  FILE IS "../../../data/hbsc-subset2/hbsc-subset2.dat";
  LISTWISE ON;

3 Variable Command

VARIABLE:
  NAMES ARE
  stud_id schl_id Gender Age Grade body1r body2 body3r body4 body5r
  phyhlth1 phyhlth2 phyhlth3 phyhlth4 phyhlth5 phyhlth6 phyhlth7
  phyhlth8 Depress1 Depress2 Depress3 Depress4 Depress5 Depress6
  Bullied1 Bullied2 Bullied3 Bullied4 Bullied5 Bullied6 Bullied7
  Bullied8 Bullied9 Bullier1 Bullier2 Bullier3 Bullier4 Bullier5
  Bullier6 Bullier7 Bullier8 Bullier9 Alc1 Alc2 Alc3 Alc4 Alc5;

  USEVARIABLES ARE
  Alc1-Alc5;

  CATEGORICAL ARE
  Alc1-Alc5;

  USEOBSERVATIONS ARE (Grade == 6 OR Grade == 7);

  MISSING ARE all(-999);

4 Analysis

ANALYSIS:
  ESTIMATOR = WLSMV;

5 Model Command

MODEL:
  Alcohol BY Alc1* Alc2-Alc5;
  Alcohol@1;

6 Output Command

OUTPUT:
  TECH1;
  STDYX;

7 Run the Model

mplus cfa-alcohol-WLSMV-listwise.inp
Mplus VERSION 8 (Linux)
MUTHEN & MUTHEN

Running input file 'cfa-alcohol-WLSMV-listwise.inp'...

Beginning Time:  16:30:28
   Ending Time:  16:30:28
  Elapsed Time:  00:00:00

Output saved in 'cfa-alcohol-WLSMV-listwise.out'.

8 Review the Results

Click cfa-alcohol-WLSMV-listwise.out to see the output.

Last Updated 2018-07-20 Fri 16:30. Created by Emacs 25.1.1 (Org mode 9.1.13)