Dear all,
I am doing an event study and I calculated my abnormal returns for each day in my event window. Now I would like to have cumulative abnormal returns, I do know how to get total cumulative abnormal returns but I would like to get cumulative abnormal returns for day 0 and 1, for day 0 + 1 + 2, day 0 + 1 + 2 + 3 etc.
How can I get this? I did generate the separate days, see my data example.
I hope this is clear and I hope you can help me. Thanks!
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(group_id days abnormal_return ar0 ar1 ar2 ar3 ar4 ar5)
1 -5 -.8582855 . . . . . .
1 -4 .16700104 . . . . . .
1 -3 .1703391 . . . . . .
1 -2 1.9902632 . . . . . .
1 -1 -1.768956 . . . . . .
1 0 3.237539 3.237539 . . . . .
1 1 -3.343374 . -3.343374 . . . .
1 2 3.76568 . . 3.76568 . . .
1 3 -2.884671 . . . -2.884671 . .
1 4 -2.3570244 . . . . -2.3570244 .
1 5 -1.8902892 . . . . . -1.8902892
2 -5 -2.621948 . . . . . .
2 -4 -4.3372827 . . . . . .
2 -3 -3.202744 . . . . . .
2 -2 .15659374 . . . . . .
2 -1 2.008903 . . . . . .
2 0 -2.81355 -2.81355 . . . . .
2 1 -1.2368627 . -1.2368627 . . . .
2 2 2.4508095 . . 2.4508095 . . .
2 3 -1.8451455 . . . -1.8451455 . .
2 4 .9693156 . . . . .9693156 .
2 5 1.8602867 . . . . . 1.8602867
3 -5 2.3462427 . . . . . .
3 -4 .7954761 . . . . . .
3 -3 2.719074 . . . . . .
3 -2 -.6082731 . . . . . .
3 -1 .14762443 . . . . . .
3 0 1.0986892 1.0986892 . . . . .
3 1 1.5341017 . 1.5341017 . . . .
3 2 -1.6110423 . . -1.6110423 . . .
3 3 -.8279147 . . . -.8279147 . .
3 4 -2.262677 . . . . -2.262677 .
3 5 .923644 . . . . . .923644
5 -5 -7.321589 . . . . . .
5 -4 7.963714 . . . . . .
5 -3 -1.246004 . . . . . .
5 -2 -1.5393357 . . . . . .
5 -1 4.6231594 . . . . . .
5 0 .4869067 .4869067 . . . . .
5 1 -.9067889 . -.9067889 . . . .
5 2 -1.686836 . . -1.686836 . . .
5 3 .1129115 . . . .1129115 . .
5 4 -.43044415 . . . . -.43044415 .
5 5 -.10070435 . . . . . -.10070435
end
[/CODE]
I am doing an event study and I calculated my abnormal returns for each day in my event window. Now I would like to have cumulative abnormal returns, I do know how to get total cumulative abnormal returns but I would like to get cumulative abnormal returns for day 0 and 1, for day 0 + 1 + 2, day 0 + 1 + 2 + 3 etc.
How can I get this? I did generate the separate days, see my data example.
I hope this is clear and I hope you can help me. Thanks!
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(group_id days abnormal_return ar0 ar1 ar2 ar3 ar4 ar5)
1 -5 -.8582855 . . . . . .
1 -4 .16700104 . . . . . .
1 -3 .1703391 . . . . . .
1 -2 1.9902632 . . . . . .
1 -1 -1.768956 . . . . . .
1 0 3.237539 3.237539 . . . . .
1 1 -3.343374 . -3.343374 . . . .
1 2 3.76568 . . 3.76568 . . .
1 3 -2.884671 . . . -2.884671 . .
1 4 -2.3570244 . . . . -2.3570244 .
1 5 -1.8902892 . . . . . -1.8902892
2 -5 -2.621948 . . . . . .
2 -4 -4.3372827 . . . . . .
2 -3 -3.202744 . . . . . .
2 -2 .15659374 . . . . . .
2 -1 2.008903 . . . . . .
2 0 -2.81355 -2.81355 . . . . .
2 1 -1.2368627 . -1.2368627 . . . .
2 2 2.4508095 . . 2.4508095 . . .
2 3 -1.8451455 . . . -1.8451455 . .
2 4 .9693156 . . . . .9693156 .
2 5 1.8602867 . . . . . 1.8602867
3 -5 2.3462427 . . . . . .
3 -4 .7954761 . . . . . .
3 -3 2.719074 . . . . . .
3 -2 -.6082731 . . . . . .
3 -1 .14762443 . . . . . .
3 0 1.0986892 1.0986892 . . . . .
3 1 1.5341017 . 1.5341017 . . . .
3 2 -1.6110423 . . -1.6110423 . . .
3 3 -.8279147 . . . -.8279147 . .
3 4 -2.262677 . . . . -2.262677 .
3 5 .923644 . . . . . .923644
5 -5 -7.321589 . . . . . .
5 -4 7.963714 . . . . . .
5 -3 -1.246004 . . . . . .
5 -2 -1.5393357 . . . . . .
5 -1 4.6231594 . . . . . .
5 0 .4869067 .4869067 . . . . .
5 1 -.9067889 . -.9067889 . . . .
5 2 -1.686836 . . -1.686836 . . .
5 3 .1129115 . . . .1129115 . .
5 4 -.43044415 . . . . -.43044415 .
5 5 -.10070435 . . . . . -.10070435
end
[/CODE]
Comment