setup_bootstrap()has been removed. Bootstrap settings are now specified directly in method constructors (e.g.,ec_ipw(bootstrap = 500, bootstrap_ci_type = "perc")). Callingsetup_bootstrap()now raises an error with migration instructions.setup_method_weighting(),setup_method_DID(), andsetup_method_SCM()have been removed. Useec_ipw(),ec_aipw(),did_ec_ipw(),did_ec_aipw(),did_ec_or(), orscm()instead. Calling the old constructors now raises an error with migration instructions.EC_IPW_OPT(),EC_AIPW_OPT(), and alllegacy_DID_EC_*/legacy_SCM*internal functions have been deleted.did_ec_ipw()anddid_ec_aipw():trt_formuladefault changed from""toNULL.
ec_ipw()andec_aipw()QC'd against Zhou et al. (2024a, JRSS-A). Internal code now maps directly to paper equations (Def 1/2, Eq 6/7, Theorems 3/4).- All estimator internals refactored: redundant parameters removed,
potentialtrick replaced with direct weighted means, consistent naming (_core,_se,_boot_statistic). build_analysis_df()is now an S4 method onmethod_weighting_obj.- Bootstrap logic moved from
.format_primary_results()(deleted) to inline control flow in eachestimate()method. - Added input validation: S/A must be binary 0/1,
T_crossmust be a positive integer less than the number of outcomes,outcome_formulalength must match number of outcomes. - Vignette improvements:
T_crosssemantics documented,head()calls added, rank-deficiency warnings suppressed in OLE simulation output.
- New API introduced: eg
ec_ipw()andec_aipw()replacesetup_method_weighting(). - Internally, core functions such as
EC_IPW_OPT()are further broken down into atomic functions. - Bootstrapping functions now call atomic functions (instead of similar, duplicated code).
- Additional test cases in preparation of deprecating legacy_ functions such as
EC_IPW_OPT(). - Bug fixes (AIPW called the IPW bootstrapping function)
- Refactor out imports, prepare for CRAN
- Original package with boht IPW and AIPW methods