--
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 post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to lav...@googlegroups.com.
the results are WIDELY different!!!
Would you be able to explain what is correct specification?
Hi all,
I am also trying to formulate a multilevel SEM mediation model (2-2-1) with the cluster statement but am finding it a bit tricky to convert the syntax from Mplus to lavaan. My model has a single (observed) level 1 outcome variable, a level 2 latent mediator factor (‘mf’; defined by five observed variables), and a level 2 latent x factor (‘xf’; defined by three observed variables). My clustering variable is ‘ID’ and I also have a level 1 covariate (‘baseline’).
So far my syntax looks like this:
library (lavaan)
model1 <- ‘
level: 1
outcome ~~ baseline
level: 2
xf =~ x1 + x2 + x3
mf =~ m1 + m2 + m3 + m4 + m5
outcome ~ xf + mf
'
fit_model1 <- sem(model=model1,data=mydata, cluster='ID')
summary(fit_model1)
Does this look appropriate? If not, any advice or guidance is much appreciated!
Many thanks,
Elizabeth
level: 1
outcome ~~ baseline
level: 2
xf =~ x1 + x2 + x3
mf =~ m1 + m2 + m3 + m4 + m5
outcome ~ xf + mf
1) whether the specification below is correct?
2) specifically with respect to the 2-2-1 mediation (group_time -> K1 -> IE2), wether I should specify something like indirect := ba*wb?
3) related to that: do I interprete the b-path at level 2 for the "group_time -> K1 -> IE2"-mediation?