Event Study & DiD Analysis
Automates the implementation of event study designs and Difference-in-Differences (DiD) analysis in R for rigorous empirical research.
This skill provides comprehensive guidance and automated R code generation for conducting event studies and Difference-in-Differences (DiD) analyses. It supports both traditional Two-Way Fixed Effects (TWFE) and modern robust estimators like Callaway & Sant'Anna, Sun & Abraham, and de Chaisemartin to handle staggered treatment timing and heterogeneous effects. By following industry-standard workflows, it ensures rigorous empirical checks including parallel trend testing, Bacon decomposition, and the creation of publication-quality visualizations tailored for social science journals.
主な機能
01Publication-ready event study plots using discrete points and error bars
021,853 GitHub stars
03Decision tree logic to select the most appropriate estimator for panel data
04Parallel pre-trend testing and diagnostic tools like Bacon decomposition
05Automated R code for traditional and modern robust DiD estimators
06Support for staggered treatment timing and heterogeneous treatment effects
ユースケース
01Evaluating policy impacts across different regions with varying implementation dates
02Visualizing dynamic treatment effects and leads/lags in econometric models
03Validating the parallel trends assumption in panel data before main regression analysis