I am trying to estimate a latent class model using gsem lclass, with Stata 15.
Each respondent has given two binary answers (choice1 and choice2). I model the responses as a logit model, and want to impose that coefficients are the same for both responses.
I would also like to estimate this as a latent class model.
I thought the following had cracked the problem:
but the @c1 etc not only constrains the coefficients to be the same within a class (which I want) but also across classes (which i dont).
Is there any way to estimate latent class models with panel data using gsem?
Thanks
Michael
Each respondent has given two binary answers (choice1 and choice2). I model the responses as a logit model, and want to impose that coefficients are the same for both responses.
I would also like to estimate this as a latent class model.
I thought the following had cracked the problem:
Code:
gsem (pre11@c1 net11@c2 net21@c3 edu11@c4 edu21@c5 fle11@c6 fle21@c7 mon11@c8 tra11@c9 _cons@c10 -> choice1, logit ) /// (pre12@c1 net12@c2 net22@c3 edu12@c4 edu22@c5 fle12@c6 fle22@c7 mon12@c8 tra12@c9 _cons@c10 -> choice2, logit ) /// (C <- q220 ), lclass(C 2)
Is there any way to estimate latent class models with panel data using gsem?
Thanks
Michael
Comment