A Major Leap Forward
We are excited to announce EventStudy v0.40.0, a comprehensive overhaul of the R package. This release transforms the package from a focused tool with three return models into a full-featured event study platform with 13 return models, 11 test statistics, and entirely new capabilities including panel event studies, intraday analysis, and publication-ready export.
What’s New
13 Return Models
Beyond the original Market Model, Mean Adjusted, and Market Adjusted models, v0.40.0 adds:
- Fama-French 3-Factor Model – size and value factors
- Fama-French 5-Factor Model – adds profitability and investment
- Carhart 4-Factor Model – adds momentum
- GARCH(1,1) – time-varying volatility
- BHAR – buy-and-hold abnormal returns for long-horizon studies
- Volume Model – abnormal trading volume
- Volatility Model – abnormal return volatility
- Custom & Linear Factor Models – extensible base classes
11 Test Statistics
The test statistics suite now includes both parametric and non-parametric tests:
- AR T-Test, CAR T-Test, BHAR T-Test
- Cross-Sectional T-Test
- Patell Z Test
- BMP Test (Boehmer, Musumeci & Poulsen 1991)
- Sign Test and Generalized Sign Test
- Rank Test (Corrado 1989)
- Calendar-Time Portfolio Test
Panel Event Studies (Difference-in-Differences)
A completely new module for panel event studies, following Miller (2023, JEP):
- Static TWFE – two-way fixed effects estimator
- Dynamic TWFE – leads and lags for pre-trend testing
- Sun & Abraham (2021) – interaction-weighted estimator for staggered treatment
- Cluster-robust standard errors via
sandwich::vcovCL()
Intraday Event Studies
New IntradayEventStudyTask class supports POSIXct timestamps for minute-level or second-level analysis, with a non-parametric significance test based on Rinaudo & Saha (2014).
Cross-Sectional Analysis
Regress CARs on firm characteristics with cross_sectional_regression(), featuring HC-robust standard errors via the sandwich package. Also includes car_by_group() for subgroup comparisons and car_quantiles() for distributional analysis.
Diagnostics & Validation
New diagnostic tools ensure your results are robust:
validate_task()– check data quality before analysismodel_diagnostics()– Shapiro-Wilk, Durbin-Watson, Ljung-Box testspretrend_test()– test for pre-event abnormal returnsplot_diagnostics()– visual diagnostic charts
Publication-Ready Export
Export your results to multiple formats:
- CSV – for further analysis in any tool
- Excel – multi-sheet workbook with formatted tables
- LaTeX – publication-ready tables with significance stars
- Broom –
tidy()method for tidyverse workflows
Quick Example
The new run_event_study() convenience wrapper makes it easy to get started:
library(EventStudy)
# One-liner event study
result <- run_event_study(
data = stock_data,
event_date = "2020-03-15",
model = "market_model"
)
# View results
summary(result)
plot_event_study(result)
# Export to Excel
export_results(result, format = "excel", path = "results.xlsx")Getting Started
Install the package from GitHub:
# install.packages("devtools")
devtools::install_github("sipemu/eventstudy")CRAN submission is underway. Check the GitHub repository for the latest updates and full documentation.