Dear Group,
I try to fit a multigroup SEM in lavaan.
In one of my groups (group 1) all values for a specific covariate are the same (i.e., all students in this group are in grade 5), in my other two groups however this covariate (grade) varies between students. I want to compare other regression coefficients between groups, while controling for the grade in all groups but in group 1. (In other groups 2 and 3 I scale the covariate "grade" as a deviation of grade 5, the level of all students in group 1).
This seems to not be easily possible, lavaan gives the following error message: "lavaan ERROR: some variables have no variance in group 1: grade".
This is my (simplified) model syntax:
T2 ~ T1 + S1 + grade
S2 ~ S1 + T1 + grade
T1 ~~ S1 + grade
S1 ~~ grade
Can someone give me advice on how to implement my intended analysis?
(I would need an approach that also works for categorical covariates, as the same is also the case for a categorical second covariate "school-type" that varies in groups 2 and 3 but not in group 1)
I would be super happy about advice.
All the Best,
Alex
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/763973ef-81f8-4d23-88b9-aa90867df660n%40googlegroups.com.
1.000 1.027 0.000 0.022 12.291 (2.5% of baseline.chisq) My conclusion: It is possible to do it as you suggested, but would be easier to report if this workaround would not be necessary.
Do any of you know of other software that may not require this step?
Thanks again and all the Best,
Alex
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/xOrS-Pty6l8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lavaan/CAHxMgedULjXysOvXpmVufLrhk4w%2Bz%3DYh%2BojcFGeEUOrb-oix-A%40mail.gmail.com.