I am creating a new variable "EventT" which must takes the value of zero on the day of the announcement, -1 on the trading day before, -1 etc..
And +1 on the day after, +2 two days after etc..
I have to keep only observations within a -20/+20 trading day window around the announcement. (Started with -35 +35).
So after creating EventT. But because the weekends and the holidays are already dropped, stata is assigning the days instead of the trading days to the values.
So stata is not assigning the days I want, because I want to select -20 / +20 of the trading days and delete the other observations (see screenshot).
Could you tell me how to select the 20 before and 20 after ?
Kind regards,
Jan
Comment