Hi,
I have an M&A dataset and I want to analyze the returns surrounding the announcement date. However, sometimes the announcement date is on Friday for example. As a result, the 1st available returns are 3 days later on Monday. Then I want to keep the returns of Monday (the first day after the announcement date). Another case is where the announcement day is Monday and you want to include the Friday returns. A simple date difference variable will not help because it will state that the difference is 3 days. Therefore I would like to keep the data from the 1st available date after the announcement date.
an example:
How can I keep the observations which are 1 day earlier and 1 day after the announcement date?
I have an M&A dataset and I want to analyze the returns surrounding the announcement date. However, sometimes the announcement date is on Friday for example. As a result, the 1st available returns are 3 days later on Monday. Then I want to keep the returns of Monday (the first day after the announcement date). Another case is where the announcement day is Monday and you want to include the Friday returns. A simple date difference variable will not help because it will state that the difference is 3 days. Therefore I would like to keep the data from the 1st available date after the announcement date.
an example:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long DealNumber int Announceddate long date double RET 649667 18026 18023 .007169831544160843 649667 18026 18024 -.04645933955907822 649667 18026 18025 -.007858576253056526 649667 18026 18028 .004356459714472294 649667 18026 18029 .014589862897992134 end format %td Announceddate format %td date
Comment