multiple_group_cfa_scalar_example

Table of Contents

Multiple Group Confirmatory Factor Analysis (Scalar Invariance) Example

1 Title Command

This is the third and final input file for this example.

TITLE:
Example 3 - Multiple Group Confirmatory Factor Analysis (Scalar 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

Again, the only changes come in the MODEL command. Here the item intercepts need to be constrained across groups, this is accomplished by removing the "[wratspl wjspl waisspl wratcalc wjcalc waiscalc];" line from the "MODEL female:" section. Further, the constraints that set the latent variable means for females "[MATH@0 SPELL@0];" should be removed (resulting in "[MATH SPELL];"). Now the latent variable means and variances are freely estimated for females.

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:
MATH SPELL;
[MATH SPELL];

5 Output Command

Additional output can be requested.

OUTPUT:
TECH1;
STDYX;

Created: 2015-03-05 Thu 10:55

Emacs 24.4.1 (Org mode 8.2.10)

Validate