Skip to content

fect

2.4.5

Fixed Effects Counterfactual Estimators

2packages depend
23.2Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Yiqing XuFirst published 2022-10-146 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 9.2 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.48
not tracked
Coverage
100%
Documentation · exports
22
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
46%
Documented parameters
99%
Return-value docs
93%
References docs
50%

Downloads

23.2K
CRAN downloads in the past year
Rank #2,415 · ~64/day · ~1.9K/mo
Daily download trend is not available in this view yet.
2.3K30 days
7.9K90 days
23.2K1 year
Compare downloads with other packages →
Also on742 r2u14 autocran463 conda_forge

Repository

Repository
83Stars
29Forks
2Open issues
1Open PRs
5Releases
510Commits
12Contributors
510 commits · Last activity 2026-08-13 · 0% stars, 30d

Stars over time

2025-08-01 · 702026-07-07 · 83

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/xuyiqing/fect on 2026-08-16.

Continuous integration (1)
GitHub Actions
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Development tooling

AI-assisted toolingBeta

Uses AI-assisted development tooling (declared in repo)

Earliest detected marker: claude on 2026-03-12

claude

Most recent: claude on 2026-03-12

Evidence
  • claude: on 2026-03-12 · evidence A, B, D · sole bot-author seen
How this is detected·Detection ruleset v2 (updated 2026-07-29)

Dependencies

Declared dependencies
27 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

Datasets

People & History

People (7)
Maintainer (1)
Author, Maintainer
Authors (7)
Author, Maintainer
Author · added in 2.0.5
Author · added in 2.0.5
Author
Author · added in 2.0.5
Author
Package Timeline

6 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 2.4.5Latest
    2026-05-30 · current release · diff ↗
  • 2.4.1
    2026-04-30 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.2.0
    2026-03-27 · diff ↗
  • 2.1.0
    2026-01-17 · diff ↗
  • 2.0.5
    2025-08-25 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0
    2022-10-14
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2022-10-14
Total releases
6 / 4 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
1.1 MB / 10 files
Download size
2.6 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("fect")
Xu, Y., Hu, S., Lipkovitz, R., Liu, L., Liu, Z., Qin, T., & Wang, Y. (2026). fect: Fixed Effects Counterfactual Estimators (Version 2.4.5) [Computer software]. https://doi.org/10.32614/CRAN.package.fect

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for fect version 2.4.5 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy