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
Missing data Treatment in STATA - Zero or BlankDear Statalist, I tried to find the thread of missing data treatment in STATA but I could not find …
marginal effects command with pwcompareAfter running a xtlogit regression, I was trying to compare the effects of investing on the mental h…
Creating a foreach loop for all string values of a variable.Hello, I am looking to code a foreach loop that completes a ustrlen() command for all string values…
on biprobit modelHi everyone, This might seem a silly question but for some reason, I am trying to use biprobit model…
Diff in Diff: DRDID and CSDIDDear all Thanks to Prof Baum, the commands drdid and csdid are up. drdid implements the Doubly Robus…
Subscribe to:
Post Comments (Atom)
0 Response to Divide panel data into subgroups
Post a Comment