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.
Destring selected variables ending with a number suffixHello everyone, I have a rather simple question and was wondering if someone can help me with it. …
Putting the bars in a prespecified orderI want to do draw the frequency distribution of a categorical variable and want the bars to be arran…
Missing values after appending in loopHello, I am appending 78 dta files using a loop. When I do this, some observations of the district v…
Real Stepwise RegressionsI found only a one-step procedure that leaves in the model only variables with a certain p-value. I…
dummy variableshello everyone, I have some trouble creating two dummy variables. I have a dataset with the variable…
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