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

Package details

AuthorYiqing Xu [aut, cre], Rivka Lipkovitz [aut], Enhan Liu [aut]
MaintainerYiqing Xu <yiqingxu@stanford.edu>
LicenseMIT + file LICENSE
Version1.0.2
URL https://yiqingxu.org/packages/fdid/ https://github.com/xuyiqing/fdid
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("fdid")

Try the fdid package in your browser

Any scripts or data that you put into this service are public.

fdid documentation built on March 23, 2026, 5:07 p.m.