I tried to check measurement invariance for a model that included one latent variable defined by three continuous indicators and three latent variables, each defined by three categorical indicators. I revealed that by default Lavaan estimated a configural model with all thresholds fixed to be equal across groups.
However, if I understand the concept of MI correctly, the configural model should have group- specific estimates for each parameter, exluding only parameters restricted to achieve identification. So, to test invariance for a model that include both contionuous and categorical indicators, one should consequently fit four models and then compare them by some kind of a LR test.
These four models are:
1) Configural model: all loadings, intercepts and thresholds are group-specific.
2) Model with equal loadings
3) Model with equal loadings and intercepts
4) Model with equal loadings, intercepts, and thresholds
I managed to fit the latter three models by fixing (and freeing) relevant parameters manually in Lavaan. To achieve identification, all latent variances were fixed to 1 in all groups, and scaling factors for each categorical indicator were set to 1 in the first group (Lavaan did that internally). However, I was not able to estimate the configural model.
I started with the model in which all loadings, intercepts and factors were group-specific, excluding only the first loadings for each latent variable, which were set to 1 for each group to achieve identification.
So the model syntax looked like
' Autonomy =~ c(1, 1, 1, 1)*Independence + c(l21, l22, l23, l24)*Imagination + ...
...
Homosexuality ~ c(i11, i12, i13, i14)*1
...
Independence |c(t11, t12, t13, t14)*t1
...
'
Again, all latent variances were fixed to 1 in all groups, and scaling factors for each categorical indicator were set to 1 in the first group by Lavaan automatically. Nevertheless, the model probably was not identified, and standard errors and scaled fit statistics were not computed
I then additionally tried to fix all scaling factors in each group to 1, as was recommended in this thread above:
'...
Independence ~*~ c(1,1,1,1)*Independence
...
'
But the model was not converged.
Is it possible at all to estimate the configural model for my case in lavaan? If it possible, how I can do it?
Many thanks in advance,
Boris