Hi All,
I vaguely recall I have read somewhere, maybe here, that we can fit different models in multiple group CFA or SEM, with the models having variables not shared across gorups. However, I tried and failed to locate that post, if there is one.
Not just constraining some parameters to zero. The two groups have different variables. Something like this:
HS.model <-
"
# Group1:
factor1 =~ x1 + x2 + x3
factor2 =~ x7 + x8 + x9
# Group2:
factor1 =~ x1 + x2 + x3
factor3 =~ x4 + x5 + x6
"
Note that this is not a missing data problem because x4 to x6 were not measured in Group1 for some reasons. x4 to x6 may even be not applicable to Group1 and so could *not* be meaningfully responded to even if they were administered to Group1. E.g., Group1 is working adults but x4 to x6 are about school life. Similarly, x7 to x8 were not measured in Group2.
Is it possible in lavaan? If yes, how to fit this model? It may be something related to "blocks" but I have never used this feature.
-- Shu Fai