Hello everyone,
I am trying to run a CFA of two factors (L1 and L2).
L1 and L2 are the latent variables and g1 - g11 and p1 - p17 that are binary coded 0 and 1.
Code:
However, after entering the syntax above, I am unable to get the model to converge (it endlessly iterates). I am not sure what the issue is, so I would really appreciate some input on how to correct it.
I also attempted to run the model after removing items with a low prevalence (less than 5% are '1's) in the dataset but still had the same issue.
Thank you in advance!
I am trying to run a CFA of two factors (L1 and L2).
L1 and L2 are the latent variables and g1 - g11 and p1 - p17 that are binary coded 0 and 1.
Code:
Code:
gsem (L1 <- g1 g2 g3 g4 g5 g6 g7 g8 g9 g10 g11, family(bernoulli) link(logit)) (L2 <- p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17, family(bernoulli) link(logit)),covstruct(_lexogenous, diagonal) group() latent(L1 L2) cov(L1*L2) nocapslatent
I also attempted to run the model after removing items with a low prevalence (less than 5% are '1's) in the dataset but still had the same issue.
Thank you in advance!
Comment