Skip to content

DirectEffects

0.3

Estimating Controlled Direct Effects for Explaining Causal Findings

1packages depend
3.4Kdownloads / year
29.5%test coverage
13/13checks pass

Overview

About
Maintained by Matthew BlackwellFirst published 2018-02-264 releasesCRAN page ↗GitHub ↗

A set of functions to estimate the controlled direct effect of treatment fixing a potential mediator to a specific value. Implements the sequential g-estimation estimator described in Vansteelandt (2009) doi:10.1097/EDE.0b013e3181b6f4c9 and Acharya, Blackwell, and Sen (2016) doi:10.1017/S0003055416000216 and the telescope matching estimator described in Blackwell and Strezhnev (2020) doi:10.1111/rssa.12759.

Install

Health

CRAN checks
13OK
Slowest check: 1.9 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.04
29.5%
Coverage · measured lines
100%
Documentation · exports
7
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
80%
Documented parameters
99%
Return-value docs
44%
References docs
22%

Downloads

3.4K
CRAN downloads in the past year
Rank #11,431 · ~9/day · ~285/mo
Daily download trend is not available in this view yet.
24530 days
86590 days
3.4K1 year
Compare downloads with other packages →
Also on133 r2u16 autocran28 c2d4u

Repository

Repository
19Stars
5Forks
5Open issues
0Open PRs
0Releases
246Commits
6Contributors
246 commits · Last activity 2025-02-25 · 0% stars, 30d

Stars over time

2023-02-24 · 182026-07-07 · 19

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/mattblackwell/directeffects on 2026-08-16.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
Docs source (1)
README.Rmd
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

Datasets

People & History

People (6)
Maintainer (1)
Author, Maintainer
Authors (6)
Author, Maintainer
Author · added in 0.2
Author
Author · added in 0.3
Package Timeline

4 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
  • 0.3Latest
    2024-10-04 · current release · diff ↗
  • 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
  • R
    R 4.1.0 released · 2021-05-18
  • 0.2.1
    2021-05-12 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2
    2019-01-04 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1
    2018-02-26
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2018-02-26
Total releases
4 / 8 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.5.0
Bundled data
224 KB / 4 files
Download size
753 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("DirectEffects")
Blackwell, M., Acharya, A., Brown, J., Kuriwaki, S., Sen, M., & Strezhnev, A. (2024). DirectEffects: Estimating Controlled Direct Effects for Explaining Causal Findings (Version 0.3) [Computer software]. https://doi.org/10.32614/CRAN.package.DirectEffects

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for DirectEffects version 0.3 [Data set]. HJJB, LLC. Data release v2026-08-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy