Skip to content

fect

Fixed Effects Counterfactual Estimators

v2.2.0 · Mar 27, 2026 · MIT + file LICENSE

Description

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>.

Downloads

1.8K

Last 30 days

2968th

5.8K

Last 90 days

13.6K

Last year

Trend: -11.3% (30d vs prior 30d)

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (5 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is 12.4Mb
  sub-directories of 1Mb or more:
    data   1.2Mb
    libs  10.2Mb
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘HonestDiDFEct’
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 12.7Mb
  sub-directories of 1Mb or more:
    data   1.2Mb
    libs  10.4Mb
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘HonestDiDFEct’
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'HonestDiDFEct'

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘HonestDiDFEct’
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘HonestDiDFEct’
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'HonestDiDFEct'

Reverse Dependencies (1)

imports

Dependency Network

Dependencies Reverse dependencies Rcpp ggplot2 GGally doParallel doFuture foreach abind (>= 1.4-0) codetools MASS gridExtra fixest doRNG future parallelly mvtnorm +5 more dependencies gsynth fect

Version History

updated 2.2.0 ← 2.1.0 diff Mar 27, 2026
new 2.1.0 Mar 10, 2026
updated 2.1.0 ← 2.0.5 diff Jan 16, 2026
updated 2.0.5 ← 1.0.0 diff Aug 24, 2025
new 1.0.0 Oct 13, 2022