Skip to content

DirectEffects

0.3Package record

Estimating Controlled Direct Effects for Explaining Causal Findings

0packages dependsuggested by 1
3.8Kdownloads / year
29.5%test coverage
13/13flavors OK

Overview

About

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
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.3
README· In the repository, left out of the releaseVignettesYes · 1 · dynamicNEWSNoCitation fileNoWebsiteYes · pkgdown
Help pages
27 (2 internal)
Examples that run
80%4 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
28%
Documented parameters
99%
Return-value docs
44%
Help pages citing references
22%

Downloads

3.8K
CRAN downloads in the past year
Rank #7,786 · ~10/day · ~317/mo
Daily download trend is not available in this view yet.
36930 days
1.2K90 days
3.8K1 year
Compare downloads with other packages →
Also on105 r2u4 autocran65 c2d4u

Repository

19Stars
5Forks
5Open issues
0Open PRs
0Releases
246Commits
6Commit identities
246 commits · Last activity 2025-02-25 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
67%
Median days to close, 50 most recently updated closed issues
144
Median days to close, 50 most recently updated closed PRs
2

Stars over time

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

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

Checks run against github.com/mattblackwell/directeffects on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-02-25 · The repository has a site deploy workflow

pkgdown site last built 2025-02-25

Reproducibility and dev environment (1)
data-raw/
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)

Installing DirectEffects adds 24 packages (14 with compiled code, 18 MB of source tarballs). Heaviest: stringi 11 MB, vctrs 1.0 MB, dplyr 902 KB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

Datasets

People & History

People (6)
Author, Maintainer since 0.1 (2018)
Author · added in 0.2
Author
Author · added in 0.3
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.3Latest
    record
    2024-10-04 · current release · diff ↗ ·
    added 16 exports
    balance.tmatch, balance_table, boots_tm, cde_aipw, cde_did_aipw, cde_ipw, cde_reg_impute, cde_telescope_match, estimate, glance, outreg_model, plotDiag.tmatch, set_treatment, telescope_match, tidy, treat_model
  • 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
    record
    2021-05-12 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2
    record
    2019-01-04 · diff ↗ ·
    added 2 exports
    boots_g, cdesens
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1
    record
    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
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 package has no citation file, so citation() returns this entry built from DESCRIPTION.

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-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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