Skip to content

mediationsens

0.0.3

Simulation-Based Sensitivity Analysis for Causal Mediation Studies

0packages depend
2.5Kdownloads / year
test coverage
11/13checks pass

Overview

About
Maintained by Xu QinFirst published 2020-05-273 releasesCRAN page ↗

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

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 4.2 min · r-devel-linux-x86_64-fedora-clang
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
2
Dependencies · direct
Check history
  • NOTE2026-06-09
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
100%

Downloads

2.5K
CRAN downloads in the past year
Rank #15,675 · ~7/day · ~206/mo
Daily download trend is not available in this view yet.
21630 days
72190 days
2.5K1 year
Compare downloads with other packages →
Also on98 r2u15 autocran

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (2)
Imports (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,120 (89%)Rd 134 (11%)
Code characteristics
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

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (0)

Author records are not tracked yet for this package.

Listed in earlier versions (2)
no longer listed · 0.0.1 to 0.0.3
no longer listed · 0.0.1 to 0.0.3
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.0.3Latest
    2024-03-06 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.0.2
    2020-06-14 · diff ↗
  • 0.0.1
    2020-05-27
  • R
    R 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
Appears in task views
Report a problem with this page →