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.
  • transphobia - Data from a randomized experiment on transgender rights.

On CRAN:

5.79 score 18 stars 17 scripts 283 downloads 19 exports 26 dependencies

Last updated 2 months agofrom:de37bd5e1c. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 18 2024
R-4.5-winOKNov 18 2024
R-4.5-linuxOKNov 18 2024
R-4.4-winNOTENov 18 2024
R-4.4-macNOTENov 18 2024
R-4.3-winNOTENov 18 2024
R-4.3-macNOTENov 18 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 Nov 18 2024.

Last update: 2024-10-01
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
Data from a randomized experiment on transgender rights.transphobia
Specify the propensity score model for a CDE treatmenttreat_model