Package: fect 2.4.5

Yiqing Xu
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>.
Authors:
fect_2.4.5.tar.gz
fect_2.4.5.tar.gz(r-4.7-arm64)fect_2.4.5.tar.gz(r-4.7-x86_64)fect_2.4.5.tar.gz(r-4.6-arm64)fect_2.4.5.tar.gz(r-4.6-x86_64)
fect_2.4.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
fect/json (API)
| # Install 'fect' in R: |
| install.packages('fect', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/xuyiqing/fect/issues
- gs2020 - Simulated Gsynth-like Panel Data
- hh2019 - Simulated Panel Data Example
- sim_base - Simulated data
- sim_gsynth - Simulated data for Gsynth
- sim_linear - Simulated panel data with unit-specific linear time trends
- sim_region - Simulated unbalanced panel with region-specific time effects
- sim_trend - Simulated panel data with unit-specific sinusoidal time trends
- simdata - Simulated panel data with two latent factors
- simgsynth - Simulated data for Gsynth
- turnout - EDR and Voter Turnout in the US
Last updated from:bbc71a2de6. Checks:6 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 325 | ||
| linux-devel-x86_64 | OK | 312 | ||
| source / vignettes | OK | 314 | ||
| linux-release-arm64 | OK | 322 | ||
| linux-release-x86_64 | OK | 387 | ||
| wasm-release | OK | 213 |
Exports:att.cumudid_wrappereffectesplotestimandfectfect_idenfect_mspefect_sensget.cohortimputed_outcomesinterFEplot.fectr.cv.rolling
Dependencies:abindclicodetoolscpp11crayondigestdoFuturedoParalleldoRNGdplyrdreamerrfarverfixestforcatsforeachFormulafuturefuture.applygenericsGGallyggplot2ggstatsglobalsgluegridExtragtablehmsisobanditeratorslabelinglatticelifecyclelistenvmagrittrMASSmvtnormnlmenumDerivparallellypatchworkpillarpkgconfigplyrprettyunitsprogresspurrrR6RColorBrewerRcppRcppArmadilloreshape2rlangrngtoolsS7sandwichscalesstringistringmagicstringrtibbletidyrtidyselectutf8vctrsviridisLitewithrzoo