Skip to contents

Pipeline & Tasks

Core entry points and task containers — the objects and functions a user touches first to set up and run an event study.

EventStudyTask
Initialization of an Event Study task.
ParameterSet
Event Study Parameter Set
run_event_study()
Run a Complete Event Study
prepare_event_study()
Prepare data for an Event Study
fit_model()
Train the defined model on each event and calculate the abnormal return.
calculate_statistics()
Calculate test statistics

Return Models

R6 model classes for estimating normal returns and computing abnormal returns, plus return-calculation strategy classes.

MarketModel
Market Model
MarketAdjustedModel
Market Adjusted Model
ComparisonPeriodMeanAdjustedModel
Comparison Period Mean Adjusted Model
FamaFrench3FactorModel
Fama-French Three-Factor Model
FamaFrench5FactorModel
Fama-French Five-Factor Model
Carhart4FactorModel
Carhart Four-Factor Model
LinearFactorModel
Linear Factor Model Base
GARCHModel
GARCH Model
DCCGARCHModel
DCC-GARCH Model
RollingWindowModel
Rolling Window Model
BHARModel
Buy-and-Hold Abnormal Returns (BHAR) Model
VolumeModel
Volume Event Study Model
VolatilityModel
Volatility Event Study Model
SimpleReturn
R6 class for simple return calculation
LogReturn
R6 class for log return calculation

Test Statistics

Single-event (AR/CAR) and multi-event (AAR/CAAR) test statistic classes and their container sets.

ARTTest
Abnormal Return T Statistic (ART)
CARTTest
Cumulative Abnormal Return T Statistic (CART)
BHARTTest
Buy-and-Hold Abnormal Return T Test (BHARTTest)
CSectTTest
Cross-Sectional T Test (CSectTTest)
PatellZTest
Patell or Standardized Residual Test (PatellZTest)
BMPTest
BMP Test (Boehmer, Musumeci, Poulsen 1991)
SignTest
Sign Test for Multiple Events
GeneralizedSignTest
Generalized Sign Test (Cowan 1992)
RankTest
Rank Test (Corrado 1989)
KolariPynnonenTest
Kolari-Pynnönen Adjusted BMP Test
CalendarTimePortfolioTest
Calendar-Time Portfolio Test
SingleEventStatisticsSet
Single Event Statistic Set
MultiEventStatisticsSet
Multi Event Statistic Set
StatisticsSetBase
Adds a test statistic to this container.

Panel, Intraday & Synthetic Control

Specialized task types and estimation functions for panel DiD, intraday, and synthetic control event study designs.

PanelEventStudyTask
Panel Event Study Task
IntradayEventStudyTask
Intraday Event Study Task
SyntheticControlTask
Synthetic Control Task
estimate_panel_event_study()
Estimate Panel Event Study
prepare_intraday_event_study()
Prepare Intraday Event Study
nonparametric_intraday_test()
Non-Parametric Intraday Event Study Test
estimate_synthetic_control()
Estimate Synthetic Control
sc_placebo_test()
Placebo Test for Synthetic Control

AI Advisor

Grounded AI advisor layer — deterministic diagnostics harvester, LLM advise function, knowledge base, and provider abstraction classes.

es_advise()
Grounded AI Advice for Event Study Results
es_diagnostics()
Harvest Diagnostics from a Fitted EventStudyTask
es_kb()
Access the EventStudy Grounding Knowledge Base
recommend_stat()
Recommend Test Statistics via Offline KB Matching
flag_robustness()
Flag Robustness Issues via Offline KB Matching
provider()
Construct a Grounded AI Advisor provider
ProviderBase
ProviderBase
AnthropicProvider
AnthropicProvider
OpenAICompatProvider
OpenAICompatProvider
CustomProvider
CustomProvider

Diagnostics

Model validation, pre-trend testing, and p-value adjustment functions.

validate_task()
Validate an Event Study experiment
model_diagnostics()
Model Diagnostics for Event Study
pretrend_test()
Pre-trend Test for Event Study
adjust_p_values()
Adjust P-Values for Multiple Testing

Cross-Sectional & Simulation

CAR-level cross-sectional analysis, group comparisons, quantiles, bootstrap inference, and Monte Carlo power simulation.

cross_sectional_regression()
Cross-Sectional Regression of CARs
car_by_group()
Compare CARs Across Groups
car_quantiles()
CAR Quantiles
bootstrap_test()
Wild Bootstrap Inference for Event Studies
simulate_event_study()
Simulate Event Study for Power Analysis

Export & Reporting

Result extraction, multi-format export, broom-compatible tidying, and automated RMarkdown report generation.

export_results()
Export Event Study Results
generate_report()
Generate Event Study Report
tidy.EventStudyTask()
Tidy Event Study Results

Plotting

Interactive Plotly-based visualization functions for event study results, stock prices, diagnostics, and specialized designs.

plot_event_study()
Plot Event Study Results
plot_stocks()
Plot Stocks
plot_diagnostics()
Plot Model Diagnostics
plot_car_distribution()
Plot CAR Distribution
plot_panel_event_study()
Plot Panel Event Study Results
plot_synthetic_control()
Plot Synthetic Control Results

Data & Datasets

Functions for downloading stock prices, factor data, and risk-free rates, plus bundled example datasets.

download_stock_data()
Download Stock Data
download_factor_data()
Download Factor Data
download_risk_free_rate()
Download Risk-Free Rate
dieselgate
Volkswagen "Dieselgate" Multi-Automaker Event Study Dataset
earnings_surprises
Earnings Surprise Multi-Firm Event Study Dataset