Event Studies in Stata
An Event Study typically involves the following steps:
- Cleaning and Preparing the Data
- Setting Estimation and Event Windows
- Estimating Normal Performance
- Calculating Abnormal Returns
- Testing for Significance
Please find them implemented in these do-files (bARC, aARC w/ need for reworking ). As required by EventStudyTools' basic (bARC) and advanced Abnormal Return Calculators (ARC), three input files are used: one for stock returns, one for market returns, and the other for the events of interest, also specifying the choice of estimation and event window lengths. The steps are detailed below:
Cleaning and Preparing the Data
- Assigning unique identifiers to firms and benchmark indices (useful if different indices are chosen for different companies)
- Converting date from a string to a numeric variable so as to be able to correctly sort the data on date
- Computing simple or logarithmic daily returns from unadjusted closing prices
- Creating a variable that counts the number of days within each company/index
- Combining firm, index and event datasets
Note: This is straightforward in the simple case of a single event per company. If instead there are multiple events per company, it becomes necessary to create multiple clusters − one for each event date.
Setting Estimation and Event Windows
It is likely that there are more observations for each company than required. It is also possible that there are not enough observations for some companies. Before continuing it must be ensured that we have the required minimum number of observations for the event window, as well as the required minimum number of observations before the event window for the estimation window.
The procedure for flagging the event and estimation windows is the same. In order to make sure that the analysis is conducted on the correct observations,
- Create a variable that will count the number of days from the event date for each observation on a company's stock
- Create a variable that takes the value 1 if an observation falls within the specified length of the event (estimation) window
Estimating Normal Performance
- Run a separate OLS regression for each company over the estimation window, and save the alphas (intercepts), betas (slope coefficients) and the RMSEs (root-mean-square errors)
- Based on the saved regression parameter estimates, predict normal performance for each day in the event window to arrive at expected returns for the company
Calculating Abnormal Returns
- Compute Abnormal Returns (ARs) for each day in the event window as the difference between actual and expected (that is, predicted normal) returns
- Compute Cumulative Abnormal Return (CAR) for a company/stock as the sum of the single-day abnormal returns over the event window
- Compute Average Abnormal Returns (AARs) for each day in the event window as the cross-sectional average (over firms)
- Compute Cumulative Average Abnormal Return (CAAR) as the sum of the AARs
Significance Testing
Finally, tests of significance are implemented to establish the statistical validity of the abnormal returns.
Further links
Manual about event studies in Stata of Princeton University