DirectEffects: Estimating Controlled Direct Effects for Explaining Causal Findings

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>.

Version: 0.2.1
Depends: R (≥ 3.5.0)
Imports: stats, sandwich, Formula, glue
Suggests: knitr, dplyr, ggplot2, reshape2, scales, testthat, rmarkdown
Published: 2021-05-12
DOI: 10.32614/CRAN.package.DirectEffects
Author: Matthew Blackwell [aut, cre], Avidit Acharya [aut], Maya Sen [aut], Shiro Kuriwaki [aut], Jacob Brown [aut]
Maintainer: Matthew Blackwell <mblackwell at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
In views: CausalInference
CRAN checks: DirectEffects results


Reference manual: DirectEffects.pdf
Vignettes: Estimating controlled direct effects


Package source: DirectEffects_0.2.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): DirectEffects_0.2.1.tgz, r-oldrel (arm64): DirectEffects_0.2.1.tgz, r-release (x86_64): DirectEffects_0.2.1.tgz, r-oldrel (x86_64): DirectEffects_0.2.1.tgz
Old sources: DirectEffects archive


Please use the canonical form to link to this page.