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) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("fdid")

1.0.2 by Yiqing Xu, 7 months ago


https://yiqingxu.org/packages/fdid/, https://github.com/xuyiqing/fdid


Browse source code at https://github.com/cran/fdid


Authors: Yiqing Xu [aut, cre] , Rivka Lipkovitz [aut] , Enhan Liu [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports estimatr, dplyr, tidyr, rlang, tidyselect, RColorBrewer, foreach, doFuture, future, ebal, grf, car, sandwich

Suggests testthat, knitr, rmarkdown


See at CRAN