Package: DirectEffects 0.2.9000

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> and the telescope matching estimator described in Blackwell and Strezhnev (2020) <doi:10.1111/rssa.12759>.

Authors:Matthew Blackwell [aut, cre], Avidit Acharya [aut], Maya Sen [aut], Shiro Kuriwaki [aut], Jacob Brown [aut], Anton Strezhnev [aut]

DirectEffects_0.2.9000.tar.gz
DirectEffects_0.2.9000.zip(r-4.5)DirectEffects_0.2.9000.zip(r-4.4)DirectEffects_0.2.9000.zip(r-4.3)
DirectEffects_0.2.9000.tgz(r-4.4-any)DirectEffects_0.2.9000.tgz(r-4.3-any)
DirectEffects_0.2.9000.tar.gz(r-4.5-noble)DirectEffects_0.2.9000.tar.gz(r-4.4-noble)
DirectEffects_0.2.9000.tgz(r-4.4-emscripten)DirectEffects_0.2.9000.tgz(r-4.3-emscripten)
DirectEffects.pdf |DirectEffects.html
DirectEffects/json (API)

# Install 'DirectEffects' in R:
install.packages('DirectEffects', repos = c('https://mattblackwell.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mattblackwell/directeffects/issues

Datasets:
  • civilwar - Data on civil wars and internal conflict from 1945-1999.
  • 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.

On CRAN:

19 exports 18 stars 2.01 score 26 dependencies 15 scripts 221 downloads

Last updated 2 years agofrom:16e29e3b66. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 24 2024
R-4.5-winNOTEAug 24 2024
R-4.5-linuxNOTEAug 24 2024
R-4.4-winNOTEAug 24 2024
R-4.4-macNOTEAug 24 2024
R-4.3-winNOTEAug 24 2024
R-4.3-macNOTEAug 24 2024

Exports:balance_tablebalance.tmatchboots_gboots_tmcde_aipwcde_did_aipwcde_ipwcde_reg_imputecde_telescope_matchcdesensestimateglanceoutreg_modelplotDiag.tmatchsequential_gset_treatmenttelescope_matchtidytreat_model

Dependencies:backportsbroomclicpp11dplyrfansiFormulagenericsgluelifecyclemagrittrMASSMatchingpillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Estimating controlled direct effects

Rendered fromDirectEffects.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2021-12-10
Started: 2018-02-27

Readme and manuals

Help Manual

Help pageTopics
Balance diagnostics telescope matchingbalance_table
Balance diagnostics for Telescope Match objectsbalance.tmatch
Coefficient Estimates across Bootstrapped Samplesboots_g
Bootstrap Uncertainty Estimates for Telescope Matchingboots_tm
Initialize an AIPW CDE estimatorcde_aipw
Initialize an AIPW DID-CDE estimatorcde_did_aipw
Initialize an IPW CDE estimatorcde_ipw
Initialize an regression imputation CDE estimatorcde_reg_impute
Initialize an telescope matching CDE estimatorcde_telescope_match
Estimate sensitivity of ACDE estimates under varying levels of unobserved confoundingcdesens
Data on civil wars and internal conflict from 1945-1999.civilwar
Fit a specified CDE estimatorestimate
Data on health and employment outcomes measured as part of the U.S. Job Corps employment training experiment.jobcorps
Specify the outcome regression model for a CDE treatmentoutreg_model
Plot output from cdesensplot.cdesens
Histograms of matching weightsplotDiag.tmatch
Data on historical plough use and the socioeconomic status of women.ploughs
Perform linear sequential g-estimation to estimate the controlled direct effect of a treatment net the effect of a mediator.sequential_g
Specifiy a treatment variable for a controlled direct effectset_treatment
Computes standard errors and p-values of DirectEffects estimatessummary.seqg
Summary of DirectEffect Bootstrap Estimatessummary.seqgboots
Summarize telescope match objectssummary.tmatch
Perform telescope matching to estimate the controlled direct effect of a binary treatment net the effect of binary mediatorstelescope_match
Specify the propensity score model for a CDE treatmenttreat_model