The new measEq.syntax() function is great! It greatly simplifies measurement invariance testing. I have been having a problem with the compareFit() function though. I am testing long invariance of categorical items, so I am constraining thresholds, then loadings, then intercepts, then means, and finally residuals using Wu.Estabrook.2016 for identification, similar to the example. I ran everything in a loop and put the results in a list, like the example as well. When I run compareFit on the full list, I get this error:
Error in svd(X) : a dimension is zero
If I use the anova() function with pairwise comparisons, it gives me the same error if I include the configural model, but when comparing two of the constrained models. If I try to use compareFit() with pairwise comparisons, though, I get a different error:
Error in data.frame(Df = Df, AIC = aic, BIC = bic, Chisq = STAT, `Chisq diff` = STAT.delta, :
row names contain missing values
With the anova() output, AIC and BIC values aren't given so I wonder if that is part of the problem in the pairwise comparisons. Any other ideas why I might be having these errors?
(as an additional side - I know semTools calculates additional fit indices as well. Is it possible to output change in Gamma hat as well? I've had a journal editor request those two before and have always had to calculate them after the fact).
Thanks,
Aaron