Learn R Programming

⚠️There's a newer version (0.3) of this package.Take me there.

DirectEffects (version 0.2.1)

Estimating Controlled Direct Effects for Explaining Causal Findings

Description

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) and Acharya, Blackwell, and Sen (2016) .

Copy Link

Version

Install

install.packages('DirectEffects')

Monthly Downloads

257

Version

0.2.1

License

GPL (>= 2)

Maintainer

Matthew Blackwell

Last Published

May 12th, 2021

Functions in DirectEffects (0.2.1)

sequential_g

Perform linear sequential g-estimation to estimate the controlled direct effect of a treatment net the effect of a mediator.
plot.cdesens

Plot output from cdesens
seq.g.vcov

Consistent Variance estimator
cdesens

Estimate sensitivity of ACDE estimates under varying levels of unobserved confounding
boots_g

Coefficient Estimates across Bootstrapped Samples
summary.seqgboots

Summary of DirectEffect Bootstrap Estimates
summary.seqg

Computes standard errors and p-values of DirectEffects estimates
civilwar

Data on civil wars and internal conflict from 1945-1999.
ploughs

Data on historical plough use and the socioeconomic status of women.