The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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
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:

Reference manual: fdid.html , fdid.pdf
Vignettes: Getting Started with fdid (source, R code)

Downloads:

Package source: fdid_1.0.2.tar.gz
Windows binaries: r-devel: fdid_1.0.2.zip, r-release: fdid_1.0.2.zip, r-oldrel: fdid_1.0.2.zip
macOS binaries: r-release (arm64): fdid_1.0.2.tgz, r-oldrel (arm64): not available, r-release (x86_64): fdid_1.0.2.tgz, r-oldrel (x86_64): fdid_1.0.2.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=fdid to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.