mediationsens
0.0.3Simulation-Based Sensitivity Analysis for Causal Mediation Studies
Overview
Simulation-based sensitivity analysis for causal mediation studies. It numerically and graphically evaluates the sensitivity of causal mediation analysis results to the presence of unmeasured pretreatment confounding. The proposed method has primary advantages over existing methods. First, using an unmeasured pretreatment confounder conditional associations with the treatment, mediator, and outcome as sensitivity parameters, the method enables users to intuitively assess sensitivity in reference to prior knowledge about the strength of a potential unmeasured pretreatment confounder. Second, the method accurately reflects the influence of unmeasured pretreatment confounding on the efficiency of estimation of the causal effects. Third, the method can be implemented in different causal mediation analysis approaches, including regression-based, simulation-based, and propensity score-based methods. It is applicable to both randomized experiments and observational studies.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-06-0911 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0811 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 100%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 75.0 median / 149 max
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
2 2 exported
Complexity
75 avg / 149 max
Call network
2 nodes / 0 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
Author records are not tracked yet for this package.
3 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.0.3Latest
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.0.22020-06-14 · diff ↗
- 0.0.12020-05-27
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-05-27
- Total releases
- 3 / 6 yrs
- License
- GPL-2 OSI
- Download size
- 11 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet