Multiple Group Confirmatory Factor Analysis Shortcut Example

Multiple Group Confirmatory Factor Analysis Shortcut Example
Tags: SEM, Measurement Invariance, Mplus

2019-01-30
Abstract: This guide outlines how to perform measurement invariance testing, all three steps, in one Mplus script. The model estimation results can be compared to the Measurement Invariance Example in R.
Table of Contents
1 TITLE Command
This is the first of three input files for this example
TITLE: Example 3 - Multiple Group Confirmatory Factor Analysis
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 wratcalc wjcalc waiscalc wratspl wjspl waisspl; MISSING ARE all(99999); GROUPING IS female(0=male 1=female);
4 ANALYSIS Command
Add this command and the "Model = …" command to request multiple models for comparison.
ANALYSIS: Model = configural metric scalar;
5 MODEL Command
In order to use the multiple model shortcut, the user should use the Mplus default of marker-variable identification. Notice how simple the model syntax becomes, the user simply needs to specify the latent variables and their indicators.
MODEL: MATH BY wratcalc wjcalc waiscalc; SPELL BY wratspl wjspl waisspl;
6 OUTPUT Command
Additional output can be requested.
OUTPUT: TECH1;
7 Output
mplus cfa-01-4-shortcut.inp
Mplus VERSION 8.2 (Linux) MUTHEN & MUTHEN Running input file 'cfa-01-4-shortcut.inp'... Beginning Time: 11:45:40 Ending Time: 11:45:40 Elapsed Time: 00:00:00 Output saved in 'cfa-01-4-shortcut.out'.
8 Review the Results
Click cfa-01-4-shortcut.out to see the output.