Dear Stata Users.
Is there a way in Stata to include a mix of categorical and continuous indicators (i.e. observed variables) in Latent Class(/Later Profile) Analysis?
Say I have 3 indicators: education, income, occupation.
If there were all categorical I would do something like (for example for a model with 3 latent classes):
gsem (education income occupation<-,mlogit) ///
, nocapslatent logit lclass(C 3) ///
startvalues(randomid, draws(15) seed(123321)) ///
em(iter(5)) ///
nodvheader ///
nonrtolerance
estat lcprob
But what if occupation is a continuous scale?
Any suggestion is greatly appreciated.
Thanks
Anna
Related Posts with LCA - mix of categorical and continuous indicators
loopshello, As part of a Monte Carlo study I have the following population regression model: Y= 262 -0.0…
margins- marginal effect of time-variant variables in mixed effects modelsDear Statalist users, I am using Stata 14 SE, and have a question about using margins for a time-var…
how to calculate marginal effect?Hi there, Need some help calculating marginal effect. Variable Description sid Subject ID age…
Heteroscedasticity test for large panel dataset using XSMLEDoes XSMLE package have any command to check the Heteroscedasticity for large panel data set? My mat…
Calculating percentiles in STATAHi, I am using the following loop to get the 0.5%, 1%, 2%, 5%, 95%, 98%, 99% and 99.5% percentiles f…
Subscribe to:
Post Comments (Atom)
0 Response to LCA - mix of categorical and continuous indicators
Post a Comment