Hi guys, I am currently conducting an event study regarding a natural disaster (panel data, long form, firmid, date). I have collected returns for multiple stocks, created event windows, pre event windows and so on. Ive also calculated cumulative abnormal returns (CAR) for my event window (0,5) and want to do a ttest to test for significance ( if CARs are different from zero). I calculated a reliable test statistic manually, by using the formula for a ttest. Now I want to use the ttest command, because it is better regarding a good overview, p-values and so on.
The variable cumulative abnormal return shows the CARs if matched with the event window, otherwise the variable cumulative abmnormal return is empty (.) for all dates except the event window.
I tried:
ttest cumulative_abnormal_return, by(firmid)
that does not work, because firm id is divided in 70 groups. I have teid many other commands also but that did not work either so I wanted to aske someone in this forum if they got an idea.
best regards
I am using stata16
The variable cumulative abnormal return shows the CARs if matched with the event window, otherwise the variable cumulative abmnormal return is empty (.) for all dates except the event window.
I tried:
ttest cumulative_abnormal_return, by(firmid)
that does not work, because firm id is divided in 70 groups. I have teid many other commands also but that did not work either so I wanted to aske someone in this forum if they got an idea.
best regards
I am using stata16
Comment