I would like to do the latent class regression. The sample is at firm-year level. Normally, the gsem or fmm could help us to group those firm-year observations into classes based on the posterior probability.
For example:
fmm 2: regress y x1 x2 x3
predict classpost*, classposteriorpr
generate expclass = 1 + (classpost2>0.5)
I was wondering whether it is possible to group the firms instead of firm-years into latent classes.
Thanks so much!
Related Posts with Is it possible to generate latent class at firm level instead of firm year level.
variable ambiguous abbreviation r(111)Hi, I have 65 variables in my data set names dtia1, dtia2..dtia65. I wish to replace the contents(re…
Transform or eform teffects ipw to odds and risk ratioHi Everyone, First time Stata user and statistics imposter. I would like to exponentiate the result…
Scaling DataHi all, I am working on some survey data, one question is based on proportions. I therefore have 5 v…
Esttab dropping columnsHi all. I am trying to make a table with esttab using output from margins. I think this will be chal…
Append and recode multiple datasets at onceHi, I am fairly new to stata and am trying to figure out a way where I can recode variables across m…
Subscribe to:
Post Comments (Atom)
0 Response to Is it possible to generate latent class at firm level instead of firm year level.
Post a Comment