Hello dear members of Statalist,
I want calculate difference between the date (stock date) and the event date for my event window(11 days from -5 to +5). To do this, I created a variable, dif, that will count the number of days from the observation to the event date. Calculation in calendar days is easy (dif=date-event_date), but I need difference in trading days because the weekends and holidays are missing in the stock data and missing in the event window again. For example, my event is at 28.08.2014 (wednesday). If I calculate dif in calender days, the dif=-3, dif=-4, dif=+3, dif=+4 are missing in the event window. I would be happy if somebody can help me.
I want calculate difference between the date (stock date) and the event date for my event window(11 days from -5 to +5). To do this, I created a variable, dif, that will count the number of days from the observation to the event date. Calculation in calendar days is easy (dif=date-event_date), but I need difference in trading days because the weekends and holidays are missing in the stock data and missing in the event window again. For example, my event is at 28.08.2014 (wednesday). If I calculate dif in calender days, the dif=-3, dif=-4, dif=+3, dif=+4 are missing in the event window. I would be happy if somebody can help me.
Comment