I am using gsem in Stata 15 for an LCA, and although I have been using Stata for some time, I am new to LCAs and sem/gsem. I would like to identify the underlying latent class variable (categorical) using 7 observed binary variables: pthink_par_qual_bin cthink_par_qual_bin know_datr felt_nlove talk_diff resp_hpe wor_depr using weighted survey data. I am working on identifying the number of classes that would be most appropriate for the data and from a theoretical standpoint, but I have 2 issues:
1. I am unable to use the command
Code:
estat lcgof
2. I am no longer able to use gsem. I was running the following model earlier in the day:
Code:
svy: gsem (pthink_par_qual_bin cthink_par_qual_bin know_datr felt_nlove talk_diff resp_hpe wor_depr <-), logit lclass(C 2)
Code:
����DB�ж�V���_�C�P��W�H� invalid name invalid syntax invalid syntax an error occurred when svy executed gsem r(198);
Does anyone have any ideas what may be going on and how I can fix it?
Thank you in advance!
0 Response to gsem: Same code, no longer working
Post a Comment