The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
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[@]dogado.de.

fect: Fixed Effects Counterfactual Estimators

Provides tools for estimating causal effects in panel data using counterfactual methods, as well as other modern DID estimators. It is designed for causal panel analysis with binary treatments under the parallel trends assumption. The package supports scenarios where treatments can switch on and off and allows for limited carryover effects. It includes several imputation estimators, such as Gsynth (Xu 2017), linear factor models, and the matrix completion method. Detailed methodology is described in Liu, Wang, and Xu (2024) <doi:10.48550/arXiv.2107.00856> and Chiu et al. (2025) <doi:10.48550/arXiv.2309.15983>. Optionally integrates with the "HonestDiDFEct" package for sensitivity analyses compatible with imputation estimators. "HonestDiDFEct" is not on CRAN but can be obtained from <https://github.com/lzy318/HonestDiDFEct>.

Version: 2.0.5
Depends: R (≥ 4.1.0)
Imports: Rcpp (≥ 0.12.3), ggplot2 (≥ 2.1.0), GGally (≥ 1.0.1), doParallel (≥ 1.0.10), foreach (≥ 1.4.3), abind (≥ 1.4-0), MASS, gridExtra, grid, fixest, doRNG, future, mvtnorm, dplyr, future.apply, reshape2, rlang, scales
LinkingTo: Rcpp, RcppArmadillo
Suggests: panelView, testthat (≥ 3.0.0), did, DIDmultiplegtDYN, ggrepel, HonestDiDFEct
Published: 2025-08-25
DOI: 10.32614/CRAN.package.fect
Author: Licheng Liu [aut], Ziyi Liu [aut], Ye Wang [aut], Yiqing Xu [aut, cre], Tianzhu Qin [aut], Shiyun Hu [aut], Rivka Lipkovitz [aut]
Maintainer: Yiqing Xu <yiqingxu at stanford.edu>
License: MIT + file LICENSE
URL: https://yiqingxu.org/packages/fect/
NeedsCompilation: yes
CRAN checks: fect results

Documentation:

Reference manual: fect.html , fect.pdf

Downloads:

Package source: fect_2.0.5.tar.gz
Windows binaries: r-devel: fect_2.0.5.zip, r-release: fect_2.0.5.zip, r-oldrel: fect_2.0.5.zip
macOS binaries: r-release (arm64): fect_2.0.5.tgz, r-oldrel (arm64): fect_2.0.5.tgz, r-release (x86_64): fect_2.0.5.tgz, r-oldrel (x86_64): fect_2.0.5.tgz
Old sources: fect archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=fect 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.
Health stats visible at Monitor.