Hi Users,
I think I may missing something simple so this may be trivial for some of you. I conducted a latent class analysis but am now looking to obtain statistically significant predictors of class membership. (If there are any) Here is my code thus far:
gsem ( legali subsidyi datai brandi insurancei marketi mandatei govti diffi diffi <- ), lclass (A 3)
estat lcgof
estat lcprob
estat lcmean
predict cpost*, classposteriorpr
egen max = rowmax(cpost*)
generate predclass = 1 if cpost1==max
replace predclass = 2 if cpost2==max
replace predclass = 3 if cpost3==max
Now I wish to see which explanatory variables (age, gender etc.) are significant predictors of class membership. Can someone advise? Thanks!
P.S. I concluded that 3 classes is appropriate (based off information criteria)
Related Posts with Predictors of Class Membership with Latent Class Analysis
Hausman TaylorHi Statalist, I am relatively new to stata, albeit I would like to conduct an analysis using the Ha…
log file not foundHi . log using chp2 file C:\WINDOWS\system32\chp2.smcl could not be opened r(603); What could be ca…
xtabond2 data issuextabond2 data issue Today, 09:05 I'm using panel data and xtabond2 command in STATA 15.1. I'm tryin…
interpretation of interactions in mixed modelHi all, I am running the following mixed model (code and results shown below). Notes: Y is continuo…
Suppress scalebar with twoway contour?twoway contour automatically generates a colour scalebar where there is colour information in the pl…
Subscribe to:
Post Comments (Atom)
0 Response to Predictors of Class Membership with Latent Class Analysis
Post a Comment