fdid: Factorial Difference-in-Differences
Implements the factorial difference-in-differences (FDID) framework for panel data settings where all units are exposed to a universal event but vary in a baseline factor G. Provides support for various estimators; supports robust, bootstrap, and jackknife variance; returns dynamic, pre/event/post aggregates and raw means; and includes helpers for data preparation and plotting. Methodology follows Xu, Zhao and Ding (2026) <doi:10.1080/01621459.2026.2628343>.
| Version: |
1.0.2 |
| Depends: |
R (≥ 3.6.0) |
| Imports: |
estimatr, dplyr, tidyr, rlang, tidyselect, RColorBrewer, foreach, doFuture, future, ebal, grf, car, sandwich |
| Suggests: |
testthat (≥ 3.0.0), knitr, rmarkdown |
| Published: |
2026-03-23 |
| DOI: |
10.32614/CRAN.package.fdid (may not be active yet) |
| Author: |
Yiqing Xu [aut, cre],
Rivka Lipkovitz [aut],
Enhan Liu [aut] |
| Maintainer: |
Yiqing Xu <yiqingxu at stanford.edu> |
| License: |
MIT + file LICENSE |
| URL: |
https://yiqingxu.org/packages/fdid/,
https://github.com/xuyiqing/fdid |
| NeedsCompilation: |
no |
| Materials: |
NEWS |
| CRAN checks: |
fdid results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=fdid
to link to this page.