Hello,
I am new to using Lavaan and would like to double check a few small things about using Lavaan with a mix of continuous dependent latent variables and a binary dependent variable.
I have a SEM with 4 structural equations, 3 of them with a continuous latent dependent variable (let’s call them L1, L2, L3), and one with a binary dependent variable (H). The binary variable H is also a right hand side variable in the L2 and L3 equations.
L1 ~ L2 + …
L2 ~ L3 + H + …
L3 ~ H + …
H ~ x1 + x2 + x3 + …
1. 1. Is there any problem with the above specification where the binary variable H is both a right hand side variable in some equations and a dependent variable in another equation, or it is an OK specification? The model estimated fine.
2. 2. How can I specify in Lavaan that I want correlation/covariance parameters to be estimated between the error term in the structural equation of H and each of the error terms in the structural equations of L1, L2, and L3? Would I do this simply as follows?
H ~~ L1
H ~~ L2
H ~~ L3
3. 3. Are all error terms in the 4 equations above assumed to be normally distributed?
4. 4. In the equation of the H binary variable, would a positive parameter of a variable X mean that the larger X is, the more likely H is to be 1 than 0?
Thanks a lot.
Maya
1. After I estimated the model, I used the lavPredict function to compute factor scores of the latent variables. My dataset consists of 360 observations. The factor scores for 14 observations are predicted as “NA” even though I have no missing data. If I change the model specification slightly, I get another set of 16 observations with “NA” factor scores. When I augment the dataset with data from another city (1000 observations) and re-estimate the model, I don’t have any more NA’s when I apply the lavPredict function.
Do you know what is causing this issue and should I be worried about it?I want to test if the coefficients in all of the model (structural + measurement models) are different for the two cities. How can I do that in Lavaan? Can I do it all at once, or do I have to test the hypothesis of equality of coefficients separately for the measurement model and the structural model?
Yves.
--
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/44q3DphAufk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at http://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.