Dear Statalist,
I have a doubt regarding construction of a variable. I am new to stata. I will be highly obliged if someone can solve my doubt.
I am working with panel dataset and my sample has 60000 observations over the time time period 2009-2020.
I am interested to look at the impact of a policy (reform) that was implemented in 2016. I will be using differences-in-difference estimation strategy for this purpose.
I am having some problems regarding the construction of my treatment variable and hence my post.
My treatment variables will be dummy variable for firms taking the value 1 for firms having a high average product of capital (arpk) and zero otherwise. The way I want to construct my treatment variable is as follows:
To determine whether firms had a high arpk or low arpk prior to the reform, I want to average each firm's measure of arpk over 2012-2015 (the last year prior to the policy change). I will then classify a firm as high arpk if its average is above the industry level median.
Note that the firm identifier is prowesscompanycode, the industry identifier is nic, and the year identifier is year, respectively.
I tried constructing this variable on my own but not getting the desired results. I will be highly obliged if someone could help me with this.
I hope I am able to explain my doubt. Any more information is required I will be happy to share.
Thanking you in advance,
Regards,
Sarthak.
Related Posts with Doubt regarding construction of a variable
Graph with laddersHello! I have data on employment by sector by country. When I group variables, sorting by year and …
Dialog box: how to force waiting for user's input?Dear Stata list, I have a do-file that first collects username and password via dialog box, then pr…
Help! Standard deviation interpret?How much would Expenditure have to increase, holding Percent constant, to increase SAT by one standa…
basic question on coefplot subgraphsDear all, I have a basic question on coefplot. I would like to plot two subgraphs and apply heading…
Coefplot matrix with transform option when the matrix contains missing valuesHello everyone, I am always being helped a lot from past threads, but this time I need to start a n…
Subscribe to:
Post Comments (Atom)
0 Response to Doubt regarding construction of a variable
Post a Comment