medsim 0.2.0
Minor release — missing-data mediation simulation.
New features
DGM generators
medsim_rnonnormal()— target skew/kurtosis via the Fleishman power methodmedsim_amputate()— MCAR / MAR / MNAR amputation (rate-calibrated)medsim_scenario_missing()/medsim_scenario_missing_grid()— missing-data mediation scenarios
Estimator adapters
medsim_method_mbco_mi()— validated D4-stacked MBCO (mice MI + D4 pooling + union-null LRT), reproducingmitml::testModels(method="D4")exactly; degrades to a complete-case MBCO chi-square testmedsim_method_mc_ci(),medsim_method_ipw(),medsim_summarize_branch_switch()
Fixes / housekeeping
getting-started.qmdvignette: addedcompute_truthexample- Dependencies: dropped unused
missingmed/rmediation; estimators usemice+RMediation(+mitmlfor the D4 validation) - README: missing-data section + r-universe install command
Verified: R-CMD-check on macOS/Windows/Ubuntu (release + oldrel-1), pkgdown, test-coverage all green; R CMD check 0/0/0; tests 611/0/1.
Install: install.packages("medsim", repos = c("https://data-wise.r-universe.dev", "https://cloud.r-project.org"))