Skip to content

medrobust 0.2.0

Choose a tag to compare

@Data-Wise Data-Wise released this 12 Jun 12:45
87a76f1

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_effects 1.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() and bound_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-bounds writeup; repaired pkgdown CI.

Verification: devtools::test() 192 pass / 0 fail; R CMD check --as-cran 0 errors / 0 warnings.