Confirmatory Factor Analysis of Depression

Confirmatory Factor Analysis of Depression

Chong Xing, Paul Johnson, and Meghan Fager

Center for Research Methods and Data Analysis, University of Kansas

Tags:

2019-02-04

Abstract:

Table of Contents

1 TITLE Command

TITLE:
  Example 7
Health Behavior in School Children
Confirmatory Factor Analysis with Ordinal-Categorical Data using MLR

2 DATA Command

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

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
  Depress1-Depress6;

  CATEGORICAL ARE
  Depress1-Depress6;

  USEOBSERVATIONS ARE Grade EQ 6 OR Grade EQ 7;

  MISSING ARE all(-999);

4 ANALYSIS Command

ANALYSIS:
  ESTIMATOR = MLR;

5 MODEL Command

MODEL:
Depress BY Depress1* Depress2-Depress6;
Depress@1;

6 OUTPUT Command

OUTPUT:
  SAMPSTAT;
  TECH1;
  STANDARDIZED;

7 Run the Model

mplus cfa-depress-mlr-cat.inp
   Mplus VERSION 8.2 (Linux)
   MUTHEN & MUTHEN

   Running input file 'cfa-depress-mlr-cat.inp'...

   Dimensions of integration:                  1
   Total number of integration points:         15


ITER  LOGLIKELIHOOD    ABS CHANGE   REL CHANGE  ALGO  TIME  TOTAL TIME
   1 -0.33919635D+05    0.0000000    0.0000000  EM    0.01     0.0
   2 -0.33241984D+05  677.6514585    0.0199781  EM    0.02     0.0
   3 -0.33115751D+05  126.2331742    0.0037974  EM    0.03     0.1
   4 -0.33088103D+05   27.6481525    0.0008349  EM    0.03     0.1
   5 -0.33078680D+05    9.4227123    0.0002848  EM    0.03     0.1
   6 -0.33074940D+05    3.7399026    0.0001131  EM    0.03     0.2
   7 -0.33073394D+05    1.5457355    0.0000467  EM    0.03     0.2
   8 -0.33072744D+05    0.6505722    0.0000197  EM    0.03     0.2
   9 -0.33072467D+05    0.2765751    0.0000084  EM    0.03     0.2
  10 -0.33072349D+05    0.1182551    0.0000036  EM    0.03     0.3
  11 -0.33072298D+05    0.0507215    0.0000015  EM    0.03     0.3
  12 -0.33072276D+05    0.0217851    0.0000007  EM    0.03     0.3
  13 -0.33072267D+05    0.0093560    0.0000003  EM    0.03     0.4
  14 -0.33072263D+05    0.0040118    0.0000001  EM    0.03     0.4
  15 -0.33072261D+05    0.0017144    0.0000001  EM    0.03     0.4
  16 -0.33072261D+05    0.0007282    0.0000000  EM    0.03     0.5
   Parameters           1         2         3         6         4
   Derivatives   0.69D-04  0.63D-04  0.50D-04  0.42D-04  0.42D-04
   Beginning Time:  11:51:58
	  Ending Time:  11:51:58
	 Elapsed Time:  00:00:00

   Refer to 'cfa-depress-mlr-cat.out' for warning(s).

8 Review the Results

Click cfa-depress-mlr-cat.out to see the output.

Last Updated 2019-02-04 Mon 11:51. Created by Emacs 25.1.1 (Org mode 9.1.13)