Learn R Programming

DirectEffects (version 0.3)

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) and the telescope matching estimator described in Blackwell and Strezhnev (2020) .

Copy Link

Version

Install

install.packages('DirectEffects')

Monthly Downloads

257

Version

0.3

License

GPL (>= 2)

Maintainer

Matthew Blackwell

Last Published

October 4th, 2024

Functions in DirectEffects (0.3)

seq_g_vcov

Consistent Variance estimator
outreg_model

Specify the outcome regression model for a CDE treatment
jobcorps

Data on health and employment outcomes measured as part of the U.S. Job Corps employment training experiment.
ploughs

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

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

Objects exported from other packages
set_treatment

Specifiy a treatment variable for a controlled direct effect
summary.seqg

Computes standard errors and p-values of DirectEffects estimates
summary.seqgboots

Summary of DirectEffect Bootstrap Estimates
summary.tmatch

Summarize telescope match objects
transphobia

Data from a randomized experiment on transgender rights.
treat_model

Specify the propensity score model for a CDE treatment
telescope_match

Perform telescope matching to estimate the controlled direct effect of a binary treatment net the effect of binary mediators
balance.tmatch

Balance diagnostics for Telescope Match objects
cde_telescope_match

Initialize an telescope matching CDE estimator
cde_ipw

Initialize an IPW CDE estimator
cdesens

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

Initialize an regression imputation CDE estimator
cde_aipw

Initialize an AIPW CDE estimator
boots_g

Coefficient Estimates across Bootstrapped Samples
cde_did_aipw

Initialize an AIPW DID-CDE estimator
balance_table

Balance diagnostics telescope matching
boots_tm

Bootstrap Uncertainty Estimates for Telescope Matching
plotDiag.tmatch

Histograms of matching weights
plot.cdesens

Plot output from cdesens
civilwar

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

Fit a specified CDE estimator