Skip to content

probmed 0.2.0

Choose a tag to compare

@Data-Wise Data-Wise released this 12 Jun 00:37
· 67 commits to main since this release

Second GitHub release (non-CRAN). Tagged off dev, as with v0.1.0.

✨ Features

  • pmed(<medfit::ParallelMediationData>) — parallel (joint) P_med. Computes the joint P_med for k parallel mediators (all moved together from control to treated levels): Phi(δ·Σaⱼbⱼ / sqrt(2·Σbⱼ²Vmⱼ + 2Vy)), recovering the single-mediator formula at k=1, with the total indirect effect Σaⱼbⱼ. All four methods supported (plugin, parametric_bootstrap, nonparametric_bootstrap, mbco). Gaussian outcome + mediators. See vignette("parallel-mediation").
  • method = "mbco" — deterministic MBCO interval (Tofighi & Kelley, 2020). A likelihood-ratio interval for both P_med and the indirect effect a·b, obtained by inverting the constrained-likelihood test rather than by resampling — seed-free and grid-resolution-independent. Gaussian, with covariates and any contrast x_ref != x_value.

🐛 Fixes

  • print(PmedResult) interpretation line now shows the mediation estimand P(Y(1, M(1)) > Y(1, M(0))) (manuscript Definition 1).

Install

install.packages("probmed", repos = "https://data-wise.r-universe.dev")
# or
devtools::install_github("data-wise/probmed@v0.2.0")

Requires medfit (>= 0.3.0). R CMD check: 0 errors, 0 warnings, 0 notes.

🤖 Generated with Claude Code