Hello!
I'm in the process of doing a multiple group SEM (grouping by AGE for example). Coincidentally, a group has no variance for a missing_dummy variable (there are no missing observations for one age group).
Is it possible to still do multiple group modeling in this case? Is there a way of telling the code to NOT estimate a coefficient for the missing dummy for specific age groups (in line with the constraining options shown in
https://lavaan.ugent.be/tutorial/groups.html )?
As a toy example, here is a reduced version of my SEM model with 2 age groups (senior vs. non-senior). Non-seniors are the ones without any cases of missing income information (and therefore no variance in
missing_income_dummy).
LV =~ ind1 + ind2 + ind3
y ~ income + missing_income_dummy + LV
lavaan(..., group = "senior")
I have attempted the following without much success:
LV =~ ind1 + ind2 + ind3
y ~ income + c(NA, 0)*missing_income_dummy + LV
lavaan(..., group = "senior")
Any help is appreciated,
Thank you!