CRAN-accepted 2026-05-30. Bundles four releases since v2.4.1 (v2.4.2 → v2.4.5).
Highlights
New: group.fe for sub-group treatment (v2.4.5)
group.feargument onfect()absorbs additive fixed effects at a coarsening of the unit identifier — e.g. state FE on county-level rows when treatment varies at the state level. Multi-column accepted; nesting validated. Closes #139.- Clustered SE auto-defaults to
group.fe[1](Bertrand-Duflo-Mullainathan 2004); override withcl = "<column>". method = "fe"silently routes tocfewhengroup.feis set;ife/mc/both/gsynthhard-error.
New: $sample slot (v2.4.4)
fect()now returns$sample, a logical matrix (same dims as$Y.dat) marking every cell used in any part of estimation (main fit, placebo / carryover / balance tests). Pairs withpanelView::panelview(sample = ...)to visualize the estimation sample.
ci.method API and estimand inference (v2.4.2)
ci.method = c("normal", "basic")onfect()selects the CI construction uniformly across all returnedest.*slots. Legacyquantile.CIis soft-deprecated (mapped with a one-time warning).estimand()gainstest = c("none", "placebo", "carryover")for placebo / carryover versions of any alternative estimand (#131),para.error("auto"/"ar"/"empirical"/"wild") for the parametricvartype, and BCa / normal CI methods with per-type defaults.- Tighter EM convergence defaults (
tol1e-3 → 1e-5,max.iteration1000 → 5000) with a non-convergencewarning(). Point estimates shift slightly toward the converged minimum; pass the old values explicitly to reproduce pre-2.4.2 output.
Bug fixes
method = "cfe"withforce = "time"/"unit"no longer errors withIndex out of bounds(v2.4.5).force = "two-way"is byte-equivalent.- Parallel bootstrap
future.globals.maxSizeoverrun fixed: thequiet_nonparawrapper no longer capturesfect_boot()'s full frame (v2.4.3).
Maintenance
- Removed the unused
sfeargument and orphanR/polynomial.R(v2.4.5). - CRAN test suite slimmed (132s → ~2s on CRAN; full suite still runs locally / CI); legacy pkgdown tooling and pre-rendered
NEWS.htmldropped.
Full changelog: NEWS.md · User manual: https://yiqingxu.org/packages/fect/