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. Provides flexible tuning parameters (including user-specified or data-driven choices for penalty parameters), detailed output including overall and cohort-specific treatment effects with confidence intervals, and extensive diagnostic tools. Also provides functions for generating simulated panel data formatted for estimating FETWFE, and running and evaluating simulations. See details in Faletto (2025) (<doi:10.48550/arXiv.2312.05985>).
Version: | 1.0.0 |
Imports: | expm, glmnet, grpreg, Matrix (≥ 1.6-0) |
Suggests: | bacondecomp, knitr, rmarkdown, dplyr |
Published: | 2025-05-15 |
DOI: | 10.32614/CRAN.package.fetwfe |
Author: | Gregory Faletto |
Maintainer: | Gregory Faletto <gfaletto at gmail.com> |
License: | MIT + file LICENSE |
NeedsCompilation: | no |
Citation: | fetwfe citation info |
Materials: | README NEWS |
CRAN checks: | fetwfe results |
Reference manual: | fetwfe.pdf |
Vignettes: |
FETWFE Simulation Vignette (source, R code) fetwfe: A Package for Fused Extended Two-Way Fixed Effects (source, R code) |
Package source: | fetwfe_1.0.0.tar.gz |
Windows binaries: | r-devel: fetwfe_0.4.4.zip, r-release: fetwfe_1.0.0.zip, r-oldrel: fetwfe_0.4.4.zip |
macOS binaries: | r-release (arm64): fetwfe_1.0.0.tgz, r-oldrel (arm64): fetwfe_1.0.0.tgz, r-release (x86_64): fetwfe_1.0.0.tgz, r-oldrel (x86_64): fetwfe_1.0.0.tgz |
Old sources: | fetwfe archive |
Please use the canonical form https://CRAN.R-project.org/package=fetwfe to link to this page.