Estimating Controlled Direct Effects for Explaining Causal Findings
Overview
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
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- 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
Repository
- 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
Forks over time
Issues over time
PRs over time
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.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-02-25 · The repository has a site deploy workflow
pkgdown site last built 2025-02-25
Dependencies
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.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.3Latest2024-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 - RR 4.4.0 released · 2024-04-24
- 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.2.12021-05-12 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.2
- RR 3.5.0 released · 2018-04-23
- 0.12018-02-26
- RR 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
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("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.
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.