Dear Statalist,
I am working on a panel dataset (xtset firm year).
I want to divide the firms into two subgroups. One for small firms and the second for bigger firms.
The category a firm belongs to should be determined by the mean of its assets over time.
This is also an unbalanced panel so that for some firms, the mean must be based on two years, while it can be based on eight years for other firms.
Then, firms with mean(ASSETS) above median should be categorized as "big_firms" (dummy=1), while small firms get dummy=0.
I hope you can help me with this.
Related Posts with Divide panel data into subgroups
Fuzzy match via -matchit- and -reclink-Hi Statalisters, I have a project that requires me to use fuzzy match to identify firm names in dif…
Mixed Logit ModelWhy could not I make alternative specific alternatives in Mixed Logit Model? …
Calculating conditional probabilities in Stata with continuous dataHello statalist, I am involved in a project looking at net use in preventing malaria. I have a data…
categorical timeID in tobit regression and LR test to decide between tobit and xttobitDear Statalist members. For my thesis, I am running a tobit regression with the DV being the owners…
Poisson autoregressive in STATAHi All, How I can fit Poisson autoregressive model in STATA? Any help, please Thanks …
Subscribe to:
Post Comments (Atom)
0 Response to Divide panel data into subgroups
Post a Comment