Hi, I've been trying to run eventdd program with my dataset, but i kept getting this error message
"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.
r(198);"
My date variable is monthly based. I have tried to convert it into numerical to create a consistent gap of 1 between months. But still doesn't work.
However, if I collapse the data into a yearly dataset, it works.
Could anyone please enlighten me? Thank you so much
numeric_date treatment firsttreat timetotreat date
627 0 19724 -21 01apr2012
628 0 19724 -20 01may2012
.
.
.
646 0 19724 -2 01nov2013
647 0 19724 -1 01dec2013
648 1 19724 0 01jan2014
649 1 19724 1 01feb2014
650 1 19724 2 01mar2014
651 1 19724 3 01apr2014
.
.
.
753 1 19724 107 01oct2022
754 1 19724 108 01nov2022
755 1 19724 109 01dec2022
notes: firsttreat here means 01jan2014
"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.
r(198);"
My date variable is monthly based. I have tried to convert it into numerical to create a consistent gap of 1 between months. But still doesn't work.
However, if I collapse the data into a yearly dataset, it works.
Could anyone please enlighten me? Thank you so much
numeric_date treatment firsttreat timetotreat date
627 0 19724 -21 01apr2012
628 0 19724 -20 01may2012
.
.
.
646 0 19724 -2 01nov2013
647 0 19724 -1 01dec2013
648 1 19724 0 01jan2014
649 1 19724 1 01feb2014
650 1 19724 2 01mar2014
651 1 19724 3 01apr2014
.
.
.
753 1 19724 107 01oct2022
754 1 19724 108 01nov2022
755 1 19724 109 01dec2022
notes: firsttreat here means 01jan2014
Comment