medrobust
R package medrobust by Data-Wise — release notes from GitHub.
medrobust made its partial-identification bounds usable by giving them confidence intervals.
◆Recent moves
- 2mo ago
NHANES exposure-side misclassification example dataset
Adds nhanes_pa, a pooled NHANES 2015-2018 sample of 9,906 records, as the exposure-side mirror of the mediator-side gesthtn example — self-reported physical inactivity misclassified against laboratory-measured hs-CRP. The worked result is the point: the natural direct effect survives mild differential reporting, but its Imbens-Manski interval covers the null once reporting accuracy is allowed to depend strongly on the outcome.
View source ↗ - 2mo ago
Natality example dataset; bounds degrade instead of aborting
Pairs the mediator path with a real-data example — a 5,000-row NCHS Natality 2021 sample for gestational hypertension and preterm birth — and makes the bounds degrade usefully. bound_ne() now returns NA bounds with a machine-readable reason and a typed medrobust_infeasible condition instead of aborting when no compatible parameter sets exist, so simulation replicates are recorded rather than lost.
View source ↗ - 2mo ago
Bounds corrected against oracles; Imbens-Manski intervals added
⚡ SPARKCorrects three estimator defects — a mis-specified 3x3 mediator solve, a plug-in-mean true-effects estimand that should have been g-computation, and an exposure NIE assembly treating a conditional as joint — all verified against population oracles to 5e-17. It then adds Imbens-Manski confidence intervals, lifting coverage from a raw-bound range of 0.00-0.42 to 0.90-1.00.
View source ↗