Package: probmed 0.4.2

probmed: Probabilistic Effect Sizes for Causal Mediation Analysis

Compute P_med, a scale-free probabilistic effect size for causal mediation analysis.

Authors:Davood Tofighi [aut, cre, cph]

probmed_0.4.2.tar.gz
probmed_0.4.2.zip(r-4.7-any)probmed_0.4.2.zip(r-4.6-any)probmed_0.4.2.zip(r-4.5-any)
probmed_0.4.2.tgz(r-4.6-any)probmed_0.4.2.tgz(r-4.5-any)
probmed_0.4.2.tar.gz(r-4.7-any)probmed_0.4.2.tar.gz(r-4.6-any)
probmed_0.4.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
probmed/json (API)

# Install 'probmed' in R:
install.packages('probmed', repos = c('https://data-wise.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/data-wise/probmed/issues

Pkgdown/docs site:https://data-wise.github.io

Datasets:

On CRAN:

Conda:

quarto

5.19 score 1 stars 52 scripts 22 exports 10 dependencies

Last updated from:7e6b574726 (on main). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK643
source / vignettesOK274
linux-releaseOK636
macos-releaseOK786
macos-oldrelOK553
windows-develOK885
windows-releaseOK757
windows-oldrelOK526
wasm-releaseOK132

Exports:extract_mediationg_hat_eifGaugePmedResultincr_pmedincr_sensitivityIncrPmedResultpmedpmed_sensitivityPmedResultPmedSensitivitypmedW_drpmedW_mdrg_coarse_grainrg_flow_contrastRgFlowResultsinkhorn_divsobol_from_thetasobol_pmedSobolPmedResultward_residualwasserstein_pmedWassersteinPmedResult

Dependencies:backportscheckmatecligenericslifecycleMASSmedfitnloptrrlangS7

Choosing a confidence interval
Decision guide | MBCO | Model bootstrap | Percentile bootstrap | Reporting checklist

Last update: 2026-11-30
Started: 2026-10-22

Comparing probmed Workflows
Feature Comparison | Workflow 1: Base R (lm/glm) | Workflow 2: lavaan | Workflow 3: mediation | Conclusion

Last update: 2026-11-30
Started: 2025-12-02

Cookbook
Point estimate only | Interval by method | Read the result | Binary mediator or outcome with covariates | From a fitted lavaan or mediation object | Two mediators | Tipping point for unmeasured M-Y confounding (mean-based shares) | Weak identification check | Missing values | Reproducibility

Last update: 2026-11-30
Started: 2026-10-22

Gauge-calibrated proportion mediated: the residual W
The problem with a single proportion-mediated number | A clean (additive) example | An interaction breaks the split | Non-binary-coded exposures: a0 / a1 | Inference: what the two arms actually do | Summary

Last update: 2026-11-30
Started: 2026-06-22

Incremental mediated elasticity: the P_med^delta curve
Why a curve, not a number | A worked example | Inference | Sensitivity to M–Y confounding | Summary

Last update: 2026-11-30
Started: 2026-10-21

Introduction to probmed
Overview | What is $P_{med}$? | Installation | Basic Example: Linear Mediation | 1. Simulate Data | 2. Estimate $P_{med}$ | 3. Interpret Results | Model-based bootstrap (opt-in) | MBCO intervals (deterministic) | Advanced Example: Binary Outcome (GLM) | 1. Simulate Binary Data | 2. Estimate with GLM | Conclusion

Last update: 2026-11-30
Started: 2025-12-02

Modern estimands
Overview | Choosing an estimand | Verification status | Boundary behavior

Last update: 2026-11-30
Started: 2026-10-21

Parallel mediation: joint P_med
Overview | The joint estimand | A worked example | Plugin (point estimate) | Parametric bootstrap | Nonparametric bootstrap | MBCO (deterministic) | Scope and limitations

Last update: 2026-11-30
Started: 2026-06-14

Sensitivity analysis
From components | From a fitted object | Incremental version | Reading the result

Last update: 2026-11-30
Started: 2026-10-22

Technical note: estimand
Definition | Consequences | Gaussian closed form | Identification | Relation to other estimands

Last update: 2026-11-30
Started: 2026-10-22

Technical note: validation
Boundary behavior in one paragraph | What this record does not show | Reproducing

Last update: 2026-11-30
Started: 2026-10-22

Where to start
Related packages | References

Last update: 2026-11-30
Started: 2026-11-30

Readme and manuals

Help Manual

Help pageTopics
Re-export extract_mediation from medfitextract_mediation
Efficient-influence-function estimator of the scale-indexed proportion mediatedg_hat_eif
Gauge-Calibrated Proportion Mediated ResultGaugePmedResult
Incremental Mediated Elasticity Curveincr_pmed
M-Y Confounding Sensitivity for the Incremental Mediated Elasticityincr_sensitivity
Incremental Mediated Elasticity ResultIncrPmedResult
Design metadata for candidate multilevel studiesmultilevel_designs
Plot Bootstrap Distributionplot-PmedResult
Compute P_med: Probabilistic Effect Size for Mediationpmed
M-Y Confounding Sensitivity for a Proportion-Mediated Estimandpmed_sensitivity
Compute P_med from Formulapmed-formula
Compute P_med from MediationDatapmed-MediationData
Compute parallel (joint) P_med from a ParallelMediationData objectpmed-ParallelMediationData
P_med Result ClassPmedResult
P_med Sensitivity Result (M-Y Confounding)PmedSensitivity
Doubly-Robust Wasserstein Proportion MediatedpmedW_dr
Multivariate Wasserstein Proportion MediatedpmedW_md
Print PmedResultprint-PmedResult
Coarse-grain multilevel data to aggregation scale 'm'rg_coarse_grain
Paired contrast of the proportion mediated between two scalesrg_flow_contrast
Renormalization-Group Flow of the Proportion MediatedRgFlowResult
Debiased Sinkhorn Divergencesinkhorn_div
Map corner means to the Sobol variance decompositionsobol_from_theta
Sobol / Variance-Scale Proportion Mediatedsobol_pmed
Sobol / Variance-Scale Proportion Mediated ResultSobolPmedResult
Summary Methodsummary-PmedResult
Gauge-Calibrated Proportion Mediatedward_residual
Wasserstein / Transport-Scale Proportion Mediatedwasserstein_pmed
Wasserstein / Transport-Scale Proportion Mediated ResultWassersteinPmedResult