Hi everyone,
I have a question about how to output the variance-covariance matrix or correlation matrix of the error terms in gsem with latent class model.
For instance, if I have an equation system as below and I want to display the variance-covariance matrix/correlation matrix among all the errors with the significance level shown and output it into excel, I wonder if anyone knows how to add this option in the code below?
In addition, previously I output regression results using code below:
now I have results for two classes, I wonder if this code would still work, that is, the exported excel file would have coefficients for two classes separately?
It would be helpful if anyone has clue about these two questions.
Thanks
I have a question about how to output the variance-covariance matrix or correlation matrix of the error terms in gsem with latent class model.
For instance, if I have an equation system as below and I want to display the variance-covariance matrix/correlation matrix among all the errors with the significance level shown and output it into excel, I wonder if anyone knows how to add this option in the code below?
. gsem (y1 <- y2 x1 x2) (y2 <- y3 x1 x3) (y3 <- x2 x3 x4), lclass(C 2)
esttab using *.csv, scalar("r2_w Overall R2") label keep(x1 x2 x3 x4 y2 y3) replace
It would be helpful if anyone has clue about these two questions.
Thanks
Comment