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
Lincom - interactions post estimationHi all, My dependent variables are binary variables. I have two types of programs (Program A, Progr…
Statistics on different subgroupsHello, Is there a way to compute summary statistics (mean) of many possibly overlapping subgroups in…
SVAR with permanent and transitory shockHi! I am trying to model an SVAR of two variables, log of the real cupper price (I(1)) and non minin…
Fixed effects estimation for different moviesHi guys! I'm unsure about a procedure I'm doing with fixed effects and I would like to check whether…
Weakly balanced to Strongly balanced datasetHi! I would like to seek assistance on how can I convert the dataset from 'weakly balanced' to 'stro…
Subscribe to:
Post Comments (Atom)
0 Response to Divide panel data into subgroups
Post a Comment