fect
R package fect by xuyiqing — release notes from GitHub.
A counterfactual estimator turning itself into a platform for multiple estimands
◆Recent moves
- 2mo ago
Adds group.fe for coarsened fixed effects and a $sample slot
Bundles four releases: group.fe absorbs additive fixed effects at a coarser level than the unit identifier with clustered SEs defaulting to match, and fect() now returns a $sample matrix marking every cell used in estimation. Both continue the package's push toward making its own internals inspectable rather than implicit.
View source ↗ - 3mo ago
Post-hoc estimand API decouples estimands from the fit
⚡ SPARKIntroduces estimand() as a typed dispatcher returning alternative estimands from any imputation fit, and soft-deprecates effect() and att.cumu() against a 3.0.0 removal. This is the structural turn the trajectory has been building toward — the fit becomes a substrate, and what you ask of it becomes a separate decision.
View source ↗ - 4mo ago
Unified cross-validation and explicit control of time components
Replaces method='gsynth' with an explicit time.component.from switch, collapses cv.treat and mask.method into a single cv.method parameter, adds k-fold CV for never-treated estimation, and adds fect_mspe() for out-of-sample model comparison. Retiring a method alias in favor of naming the actual modeling choice is the same clarity impulse that later produces estimand().
View source ↗ - 7mo ago
Rewrites complex fixed effect handling and fixes speed
A terse release rewriting complex fixed effect handling alongside a speed fix. The fixed-effects machinery reworked here is what group.fe later builds on in 2.4.5.
View source ↗ - 11mo ago
Adds heterogeneous treatment effect plots and caps default cores
Adds a type='hte' plot for heterogeneous treatment effects and caps default parallel cores, plus dependency-driven fixes. Modest next to the 2.x releases, and the last entry before the package's pace picks up sharply.
View source ↗