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.1.0 |
| Depends: | R (≥ 4.1.0) |
| Imports: | Rcpp (≥ 0.12.3), ggplot2 (≥ 2.1.0), GGally (≥ 1.0.1), doParallel (≥ 1.0.10), doFuture, foreach (≥ 1.4.3), abind (≥ 1.4-0), MASS, gridExtra, grid, fixest, doRNG, future, parallelly, mvtnorm, dplyr, future.apply, reshape2, rlang, scales |
| LinkingTo: | Rcpp, RcppArmadillo |
| Suggests: | panelView, testthat (≥ 3.0.0), did, DIDmultiplegtDYN, ggrepel, HonestDiDFEct |
| Published: | 2026-01-17 |
| 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> |
| BugReports: | https://github.com/xuyiqing/fect/issues |
| License: | MIT + file LICENSE |
| URL: | https://yiqingxu.org/packages/fect/, https://github.com/xuyiqing/fect |
| NeedsCompilation: | yes |
| CRAN checks: | fect results |
| Reference manual: | fect.html , fect.pdf |
| Package source: | fect_2.1.0.tar.gz |
| Windows binaries: | r-devel: fect_2.1.0.zip, r-release: fect_2.1.0.zip, r-oldrel: fect_2.1.0.zip |
| macOS binaries: | r-release (arm64): fect_2.1.0.tgz, r-oldrel (arm64): fect_2.1.0.tgz, r-release (x86_64): fect_2.1.0.tgz, r-oldrel (x86_64): fect_2.1.0.tgz |
| Old sources: | fect archive |
| Reverse imports: | gsynth |
Please use the canonical form https://CRAN.R-project.org/package=fect to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.