Hi all!
I have a panel data (gvkey - firm id and fyear- time). I create a Law indicator for states that adopted a certain law at different times (staggered adoption). It is a dummy taking the value of one after the firm (gvkey) adopts this law during my sample period, zero otherwise. Here is the model I use: reghdfe Dependent LawDummy Controls, absorb() cluster()
Since the dependent variable is constructed using data over the past several years (the estimation period spanning the previous five years might hinder correct inferences from the comparison between the pre- and post- periods), I want to use the following two methods to make enough lead-lag time for my difference-in-differences research design.
First approach: I want to create a dummy variable, one for lead1 lead2 lead3 lead4, and 0 for lag1 lag2 lag3 lag4, with no missing observations within these 8 years. So that I can compare the differences between lead1/2/3/4 vs lag 1/2/3/4.
Another approach to address this concern is to exclude observations from the four years immediately following the Law adoption year.
Anyone knows how to write the code for these analysis? And which approach is better? Thank you in advance for your help!!
Related Posts with Difference-in-difference research design and multi-year lead/lag time
including time dummy variables make all other variables insignificantDear Statalist, I am working on bilateral remittances data over the period 2011-2017 for a set of d…
oaxaca_riffDear members, I am trying to estimate productivity/yield gap between men and women using oaxaca_rif.…
Many points are overlapped, how to better plot the scatter? Code: * Example generated by -dataex-. To install: ssc install dataex clear input float a double b…
Combining multiple loops to write summary statistics to excel efficiently.Hi, I'm trying to produce summary statistics of a variable efficiently as it will have to be done n…
Reducing estimated residual of our modelGoodmorning! Can someone explain me how to reduce the estimated residual of our model? …
Subscribe to:
Post Comments (Atom)
0 Response to Difference-in-difference research design and multi-year lead/lag time
Post a Comment