fetwfe: Fused Extended Two-Way Fixed Effects

Calculates the fused extended two-way fixed effects (FETWFE) estimator for unbiased and efficient estimation of difference-in-differences in panel data with staggered treatment adoption. This estimator eliminates bias inherent in conventional two-way fixed effects estimators, while also employing a novel bridge regression regularization approach to improve efficiency and yield valid standard errors. Also implements extended TWFE (etwfe) and bridge-penalized ETWFE (betwfe). Provides S3 classes for streamlined workflow and supports flexible tuning (ridge and rank-condition guarantees), automatic covariate centering/scaling, and detailed overall and cohort-specific effect estimates with valid standard errors. Includes simulation and formatting utilities, extensive diagnostic tools, vignettes, and examples. See Faletto (2025) (<doi:10.48550/arXiv.2312.05985>).

Package details

AuthorGregory Faletto [aut, cre] (ORCID: <https://orcid.org/0000-0001-8298-1401>)
MaintainerGregory Faletto <gfaletto@gmail.com>
LicenseMIT + file LICENSE
Version1.5.0
URL https://github.com/gregfaletto/fetwfePackage
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("fetwfe")

Try the fetwfe package in your browser

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

fetwfe documentation built on Aug. 9, 2025, 9:07 a.m.