I am working on panel data having 1410 firms, six variables, and eight years.
I have a law as the treatment, which was passed in 2016. So, 2013-2016 is the pre-treatment period, whereas 2017-2020 is the post-treatment period.
Also, I have categorized the firm into two groups.
I run a regression with three-way interactions where a continuous dependent variable interacts with the other two dummy variables. Now I want to divide my data into four quartiles based on the deviation of the dependent and the industry-based median. (observed value-industrial median).
Now the problem is that I have grouped the firms based on the average of the first four years (average of the pre-treatment period), so it is constant over time. If I categorize the deviations based on the quartile, the observed values of the same firm will fall into different quartiles in different years. This would affect the causality. I am thinking of taking out the average/median of the deviation of the particular firm (first four years) and then checking in which quartile it falls. Is it the right way to do so?
Thanks and Regards
I have a law as the treatment, which was passed in 2016. So, 2013-2016 is the pre-treatment period, whereas 2017-2020 is the post-treatment period.
Also, I have categorized the firm into two groups.
I run a regression with three-way interactions where a continuous dependent variable interacts with the other two dummy variables. Now I want to divide my data into four quartiles based on the deviation of the dependent and the industry-based median. (observed value-industrial median).
Now the problem is that I have grouped the firms based on the average of the first four years (average of the pre-treatment period), so it is constant over time. If I categorize the deviations based on the quartile, the observed values of the same firm will fall into different quartiles in different years. This would affect the causality. I am thinking of taking out the average/median of the deviation of the particular firm (first four years) and then checking in which quartile it falls. Is it the right way to do so?
Thanks and Regards
Comment