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
Propensity score matching/weighting - panel dataHi everyone! Because I am lacking parallel trends, I have decided to study the effect of X on Y usi…
how to get the coefficient of interation term after regression Code: xtset area_id year xtreg y i.dummy##c.GDP income xoijj i,year, fe r After running this r…
Help with basic data managementDear all in Statalist, I need general codes for management of my data that can be used for other st…
Count frequency of namesDear All, Suppose that I have this dataset, Code: * Example generated by -dataex-. To install: ssc…
Dynamic number of ticks with valuelabels in twoway graph?I have to update this figure each month and I then have to manually change 1(1)19 to 1(1)20 ond so o…
Subscribe to:
Post Comments (Atom)
0 Response to LCA - mix of categorical and continuous indicators
Post a Comment