probmed 0.2.0
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. Seevignette("parallel-mediation").method = "mbco"— deterministic MBCO interval (Tofighi & Kelley, 2020). A likelihood-ratio interval for both P_med and the indirect effecta·b, obtained by inverting the constrained-likelihood test rather than by resampling — seed-free and grid-resolution-independent. Gaussian, with covariates and any contrastx_ref != x_value.
🐛 Fixes
print(PmedResult)interpretation line now shows the mediation estimandP(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