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
Generating a variableI have a variable that measure money (M) whats the command to generate a new variable "m.lower" whic…
Interpreting the r and adjusted r square value in an arima modelHello, i have been working on some time series data for the last couple of days which has required t…
Truncate a number to two decimalsHi, I have a doubt. I have a variable named "score" (float) as showed below and I want to truncate i…
Matching two samples by the same year/industry/provinceDear Stata experts, I have a sample of firms committed fraud. It has 1,700 observations. The format…
Time series techniiquesHi all, I try it again I have a dataset having as inputs: the id of products, quarters, Year corre…
Subscribe to:
Post Comments (Atom)
0 Response to Divide panel data into subgroups
Post a Comment