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
Creating variable with egen count() and conditionsI'm working with a labour force survey and want to attach to each observation a new variable recordi…
Interaction between dummy variable and time dummy variableDear all, I am writing here with the hope I can find help regarding an obstacle that I am having wit…
Writing down a fractional logistic regression equationHi everyone, I'm currently using -fracreg logit- for one of my models. However, I'm having trouble …
How to draw two base lines using coefplot command on stata.Hi, I'm trying to look at the average effect in the pre- and post treatment time periods. For that …
Multiple imputation using mi impute chainedHello everyone. I am trying to do multiple imputation using mi impute chained using the syntax belo…
Subscribe to:
Post Comments (Atom)
0 Response to Predictors of Class Membership with Latent Class Analysis
Post a Comment