The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
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) <doi:10.1007/s00181-025-02807-z> and Callaway and Sant'Anna (2021) <doi:10.1016/j.jeconom.2020.12.001>.
| Version: | 0.2.1 |
| Depends: | R (≥ 3.5.0) |
| Imports: | etwfe, fixest, ggplot2, scales, stats |
| Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0) |
| Published: | 2026-06-02 |
| DOI: | 10.32614/CRAN.package.selectTWFE |
| Author: | Paul von Hippel [aut, cre] |
| Maintainer: | Paul von Hippel <ph3828 at eid.utexas.edu> |
| License: | MIT + file LICENSE |
| NeedsCompilation: | no |
| Materials: | NEWS |
| CRAN checks: | selectTWFE results |
| Reference manual: | selectTWFE.html , selectTWFE.pdf |
| Vignettes: |
Model Selection Between TWFE and ETWFE (source, R code) |
| Package source: | selectTWFE_0.2.1.tar.gz |
| Windows binaries: | r-devel: selectTWFE_0.2.1.zip, r-release: selectTWFE_0.2.1.zip, r-oldrel: selectTWFE_0.2.1.zip |
| macOS binaries: | r-release (arm64): selectTWFE_0.2.1.tgz, r-oldrel (arm64): selectTWFE_0.2.1.tgz, r-release (x86_64): selectTWFE_0.2.1.tgz, r-oldrel (x86_64): selectTWFE_0.2.1.tgz |
Please use the canonical form https://CRAN.R-project.org/package=selectTWFE to link to this page.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.