multiple_group_cfa_metric_example

Table of Contents

Multiple Group Confirmatory Factor Analysis (Metric Invariance) Example

1 Title Command

This is the second input file for this example.

TITLE:
Example 3 - Multiple Group Confirmatory Factor Analysis (Metric Invariance)

2 Data Command

DATA:
FILE IS "../../data/job_placement.csv";

3 Variable Command

VARIABLE:
NAMES ARE
id wjcalc wjspl wratspl wratcalc waiscalc waisspl
edlevel newschl suspend expelled haveld female age;

USEVARIABLES ARE
wratspl wjspl waisspl wratcalc wjcalc waiscalc;

MISSING ARE all(99999);

GROUPING IS female(0=male 1=female);

4 Model Command

All of the changes come in the MODEL command. In this model the factor loadings need to be constrained to be equal for both males and females. This is accomplished by including the statements about factor loadings under the "MODEL:" heading, but not repeating them under "MODEL female:". This is telling Mplus to estimate a single factor loading for each item for males and females (Mplus does this by default). The other change is that under the "MODEL female:" heading the latent variable variances are no longer constrained to be equal to 1. The scale of the latent variables are set for the male group (both equal to 1) and the latent variable variances for females are based on that scaling. The constraints on the factor loadings allow for the latent variable variances for females to be freely estimated.

MODEL:
MATH BY wratcalc* wjcalc waiscalc;
SPELL BY wratspl* wjspl waisspl;
[wratspl wjspl waisspl wratcalc wjcalc waiscalc];
MATH@1 SPELL@1;
[MATH@0 SPELL@0];

MODEL female:
[wratspl wjspl waisspl wratcalc wjcalc waiscalc];
MATH SPELL;

5 Output Command

Additional output can be requested.

OUTPUT:
TECH1;
STDYX;

Created: 2015-03-05 Thu 10:52

Emacs 24.4.1 (Org mode 8.2.10)

Validate