Model Selection Between TWFE and ETWFE

Estimates both a vanilla two-way fixed effects (TWFE) model and an extended TWFE (ETWFE) model, then selects between them using Cochran's Q test for heterogeneity. When ETWFE wins, reports the heterogeneity fraction (I-squared) and cohort-time estimates with empirical Bayes shrinkage and Bonferroni multiplicity correction. Methods build on Wooldridge (2025) and Callaway and Sant'Anna (2021) .


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("selectTWFE")

0.2.1 by Paul von Hippel, 4 months ago


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


Authors: Paul von Hippel [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports etwfe, fixest, ggplot2, scales, stats

Suggests knitr, rmarkdown, testthat


See at CRAN