Hello everyone,
I’m working with panel data that contains school-level outcomes (grades) for the years 2015, 2017, 2019, 2021, and 2023. Treatment occurred in 2017, and I created a "time2treat" variable where:
"Lead or lag term not found in the range of the event study plot. Ensure that the indicated timevar() has full coverage for all leads and lags, or attempt accumulating leads and lags using the accum option."
From what I understand, the command requires consecutive time periods (e.g., -3, -2, -1, 0, 1, 2), but my dataset only has observations every two years.
I’ve read a pdf with instructions to use this command and tried using baseline(), accum, and other options like lags(), leads(), and inrange() — none of them seem to solve this issue. Has anyone dealt with a similar situation?
I’m working with panel data that contains school-level outcomes (grades) for the years 2015, 2017, 2019, 2021, and 2023. Treatment occurred in 2017, and I created a "time2treat" variable where:
- 2015 → -2
- 2017 → 0
- 2019 → 2
- 2021 → 4
- 2023 → 6
(and similarly for earlier years like 2013 → -4, 2011 → -6, etc.)
"Lead or lag term not found in the range of the event study plot. Ensure that the indicated timevar() has full coverage for all leads and lags, or attempt accumulating leads and lags using the accum option."
From what I understand, the command requires consecutive time periods (e.g., -3, -2, -1, 0, 1, 2), but my dataset only has observations every two years.
I’ve read a pdf with instructions to use this command and tried using baseline(), accum, and other options like lags(), leads(), and inrange() — none of them seem to solve this issue. Has anyone dealt with a similar situation?
- Is there any way to run eventdd without full consecutive leads/lags?
- Or would I need to write a custom event study manually using reghdfe and then graph it myself?
Comment