Dear Kristijan,
The baseline or independence model generated by default freely estimates the thresholds across all groups. Consequently, when you impose equality constraints on the thresholds—or on both thresholds and loadings—in your target invariance model, this target model is no longer strictly nested within the default baseline model. Therefore, the software does not calculate these robust incremental fit indices.
As pointed by Terrence in the StackExchange post, a possibility to resolve this issue and obtain the robust fit indices would be to specify a custom baseline model that incorporates the same threshold equality constraints as your target measurement invariance model. Operationally, you can accomplish this by first utilizing the lav_partable_independence() function, which generates the foundational parameter table for the standard independence model. Next, you should add the necessary cross-group equality constraints specifically on the threshold parameters. The final step would be to fit the custom baseline model to your data and subsequently pass this fitted model object directly to the
baseline_model= argument within the
fitMeasures() function.
However, upon attempting to generate a brief reproducible example to illustrate this workaround for this post, I discovered that lavaan (version 0.7-2) currently fails to calculate the indices using the
fitMeasures(baseline_model=) and instead returns the following error: "robust fit indices are currently not available for categorical data in combination with a non-default baseline model; returning NA." I seem to recall that I used this custom baseline method in previous analyses, which leads me to suspect that a recent update may have altered this specific functionality. Given this unexpected behavior, I wonder if Yves Rosseel or Terrence Jorgensen might be able to shed some light on this matter, clarifying whether this is an intended limitation or if there is a newly recommended procedure to obtain these robust fit indices under such measurement invariance conditions.
On the other hand, it is not recommended to use differences in fit indices (i.e., the CFI delta) to assess the presence of measurement invariance in categorical models, since their conventional cutoff values were derived almost exclusively from simulations conducted with continuous data. Consequently, the likelihood ratio test remains the most valid option for testing the presence of invariance.
Best regards,
Adrián García