medrobust 0.2.0
First feature release since the 0.1.0 initial version.
Correctness fixes (differential-misclassification bounds)
- Mediator solve: mis-specified 3×3 → two per-Y 2×2 systems (NDE/NIE offset corrected).
- True-effects estimand: plug-in-mean → g-computation (
@true_effects1.500 → 1.480). - Exposure NIE assembly: recovered conditional was treated as joint; now multiplied by the observed
P(M,Y|C)(NIE had collapsed toward the null).
All verified against population oracles (recovery exact to 5e-17) with new regression tests.
New feature — confidence intervals for the bounds
bound_ci()andbound_ne(ci_method = "analytic"): Imbens–Manski confidence intervals for the partial-identification bounds, both exposure and mediator paths.- Validated across both paths × N∈{100,200,500} × OR/RR/RD: raw-bound coverage 0.00–0.42 → IM CI 0.90–1.00.
Documentation
- New Identification Mathematics vignette;
TECHNICAL-NOTES-boundswriteup; repaired pkgdown CI.
Verification: devtools::test() 192 pass / 0 fail; R CMD check --as-cran 0 errors / 0 warnings.