cfa-PhysHealth-1factor-ML
Table of Contents
Structural Equation Model (SEM)
1 Title Command
TITLE: Example 7 Health Behavior in School Children Confirmatory Factor Analysis with Continuous Data using MLR 1-Factor CFA Model for Physical Health;
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 phyhlth1-phyhlth8; MISSING ARE all(-999);
4 Analysis
ANALYSIS: ESTIMATOR = MLR;
5 Model Command
MODEL: phyhlth BY phyhlth1* phyhlth2-phyhlth8; phyhlth@1;
6 Output Command
OUTPUT: TECH1; STDYX;