Hi together,
I have two dichotomous variables A and B.
I know their joint distribution, e.g. P(A), P(B), P(A and B). (I have no data, but I can simulate it with this information)
Under the assumption that those variables reflect latent variables that are normally distributet, I can use the simulated data and estimate the correlation of the latent Variables with the following model:
modAB <- "
factorA =~ 1*A
factorB =~ 1*B
factorA ~~ factorB
A ~~ 0*A
B ~~ 0*B
factorA ~~ 1*factorA
factorB ~~ 1*factorB
"
fitAB <- sem(modAB, datAB, ordered = c("A", "B"))
However, I have many of those pairs, which makes this approach computationally expensive (first drawing data, then fitting the model, then extracting the parameter of interest.)
I assume that because I only have two dichotomous variables and I know their distribution, there is a way to directly calculate die correlation of the latent variables from the known probabilities. Does someone now how to do that?