I was wondering if you can help me. I am trying to analyse my
datasample by using an Event-Study. Now I would like to get a
cumulative sum of the abnormal return for each day around the
event-date. At the End I would like to have a variable where I can see
the sum for each day around the event. My data looks like this:
new variable I need
countrynam spreads group_id datum event_date dif
event_window abnormal_return sum_for_each_day
Portugal 0.30 1 21dec2010 23dec2010 -2 0
0.5
Portugal 0.33 1 22dec2010 23dec2010 -1 1
0.6 1.75=0.6+0.05+1.1
Portugal 0.32 1 23dec2010 23dec2010 0 1
0.5 1.80=0.5+0.10+1.2
Portugal 0.33 1 27dec2010 23dec2010 1 1
0.6 2.05=0.6+0.15+1.3
Portugal 0.35 1 28dec2010 23dec2010 2 0
0.4