Skip to content

paths

0.1.2

An Imputation Approach to Estimating Path-Specific Causal Effects

0packages depend
6.6Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Xiang ZhouFirst published 2020-05-063 releasesCRAN page ↗

In causal mediation analysis with multiple causally ordered mediators, a set of path-specific effects are identified under standard ignorability assumptions. This package implements an imputation approach to estimating these effects along with a set of bias formulas for conducting sensitivity analysis (Zhou and Yamamoto doi:10.31235/osf.io/2rx6p). It contains two main functions: paths() for estimating path-specific effects and sens() for conducting sensitivity analysis. Estimation uncertainty is quantified using the nonparametric bootstrap.

Install

Health

CRAN checks
13OK
Slowest check: 3.5 min · r-oldrel-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-07
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 593 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
56%

Downloads

6.6K
CRAN downloads in the past year
Rank #7,075 · ~18/day · ~546/mo
Daily download trend is not available in this view yet.
33730 days
1.5K90 days
6.6K1 year
Compare downloads with other packages →
Also on108 r2u7 autocran49 c2d4u

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.5.0
Imports (8)
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 1,207 (63%)Rd 715 (37%)
Code characteristics
Object systems
S310
Cyclomatic complexity
2.0 median / 24 max

Test coverage

Line coverage

Expression

Tests / Examples

Functions

23 3 exported

Complexity

3.8 avg / 24 max

Call network

23 nodes / 8 edges

Loading call graph…

Lowest coverage

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

Datasets

Bundled datasets · 2
NameClassRows × ColsAlso ships in
tatardata.frame427 × 19
welfaredata.frame213 × 15

People & History

People (3)
Maintainer (1)
Maintainer
Authors (2)
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
  • 0.1.2Latest
    2025-12-22 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.1
    2021-06-18 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    2020-05-06
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-05-06
Total releases
3 / 6 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 4.5.0
Bundled data
3.6 KB / 2 files
Download size
55 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →