Hello all,
there is an lavaan tools to test multiple models with multiple observed?
Suppose I have a simple model:
A ~ B + C
C ~ B
but for B + C I have two observed variables, that is B1 and B2; and C1 and C2. I do not want use latent, but instead test all combinations of observed variables.
There is a tool by lavaan to test it, for instance a loop. Or I must construct all models by hand one by one.
model1 <- "A ~ B1 + C1
C1 ~ B1"
model2 <- "A ~ B2 + C1
C1 ~ B1"
model3 <- "A ~ B1 + C2
C1 ~B1"
and so on...
Thanks in advance
Fernando