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
Sequential logit postestimationDear all, I am making estimation of a sequential logit model. Please I have two questions: 1- I wou…
change label in y-axis/x-axis?Dear All, I have the following code (please ssc install coefplot) and graph: Code: webuse grunfeld,…
Data transformation after multiple imputationHi Statalist, I am new to the forum and to multiple imputations. I plan to run a cox regression mod…
A few questions about STATA difference in difference using data from multiple time periodsDear all, I want to see the influence of a housing policy on housing prices in two regions, one was…
Finding values that are two standard deviations above the meanI need to find values of a variable that are two standard devotions above the mean. I want to create…
Subscribe to:
Post Comments (Atom)
0 Response to Predictors of Class Membership with Latent Class Analysis
Post a Comment