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
Callagain command by Behaghel et al.Hi I'm currently trying to run the command "callagain" by Behaghel et al. (to be found here). Unfor…
please help. making bar graph more simple with "over" optionsHi, guys. I'm a newcomers with stata, and there is some trouble in making bar graph. My data has 4…
Adding rows under a variableStata command for adding rows lets say 10 rows under a variable which has fixed observations like 40…
Writing a formula in which stata chooses a value or 1Hi! I'm trying to use this formula to calculate eGFR: eGFR = 142*min(standardized Scr/K, 1)^α *max(…
Creating a scatterplot with two different variablesHow to create a scatterplot with two different variables one being dependent and one being independe…
Subscribe to:
Post Comments (Atom)
0 Response to LCA - mix of categorical and continuous indicators
Post a Comment