Stepwise measurement invariance for longitudinal multigroup data
Source:R/mi_stepwise_score_long.R
compute_mi_long_stepwise_score.RdIdentifies loading non-invariance across groups within each time point and
across time points within each group, then fits a final measurement model
across all group-time cells. This score-based implementation is the
measurement-invariance procedure used by lmmgsem().
Arguments
- data
Data frame containing the observed variables and grouping and time identifiers.
- model
Measurement model in lavaan syntax.
- group_var
Name of the grouping column in
data.- time_var
Name of the time column in
data.- method
Selection rule for freeing a loading:
"group_violations"or"test_statistic".- alpha
Significance level for the score tests.
- d_cfi_threshold
Maximum configural-to-metric CFI difference.
- max_iter
Maximum number of iterations per group/time slice.
- fit_indices
Fit indices to return for the configural and metric models.
- specific_noninv
If
TRUE, allow non-invariance for specific group-time pairs; otherwise free loadings globally.- ...
Additional arguments passed to lavaan's CFA fitting functions.