fect v2.2.0
fect v2.2.0
CRAN release (2026-03-27).
What's New
time.component.fromparameter: choose"notyettreated"(default) or"nevertreated"to control which units provide time-varying model components. Replacesmethod = "gsynth"withmethod = "ife", time.component.from = "nevertreated".- CFE nevertreated support: CFE estimator now works with
time.component.from = "nevertreated", enabling full model components with never-treated estimation. fect_mspe(): new function for out-of-sample model comparison (MSPE, RMSE, MAD) across specifications.- Unified cross-validation: replaced
cv.treat+mask.methodwith singlecv.methodparameter; addedcv.samplek-fold CV for nevertreated estimation. - EM convergence improvements: R-level centering + C++ component-wise convergence (up to 2000x better component accuracy).
- Removed deprecated methods:
polynomial,bspline,cfe_old. - Plot system overhaul: pre/post color distinction, highlight shapes, new
esplot()parameters (xangle,yangle,xbreaks,ybreaks,legendOff). - Renamed datasets:
simdata1→sim_base,simdata2→sim_trend,simgsynth→sim_gsynth. Addedsim_regionandsim_linear. - Expanded test suite: 590 tests (up from 131), including 98 book-derived behavioral tests and 36 CFE bifurcation tests.
- CRAN compliance: resolved codoc mismatches, removed duplicate data sources, added
globalVariablesdeclarations. - Other bug fixes.