PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
November 18, 2016International Journal of Epidemiology2,337 citationsOpen Access

Robust causal inference using directed acyclic graphs: the R package ‘dagitty’

View Full Paper
JTJohannes TextorBZBenito van der ZanderMGMark S. Gilthorpe

Key Points

  • To introduce the R package 'dagitty' and demonstrate its capabilities for causal graph evaluation, covariate adjustment set selection, and detection of causal misspecifications in epidemiological research.
  • Integrated the core capabilities of the DAGitty web application directly into the R environment for statistical computing.
  • Implemented programmatic functions to evaluate dataset-graph consistency, enumerate statistically equivalent directed acyclic graphs, and derive valid exposure-outcome adjustment sets.
  • Provided automated algorithms to identify covariate adjustment sets that remain valid across causally different but statistically equivalent graphical models.
  • Released the open-source software tool on CRAN and GitHub under the GNU General Public License.

Abstract

Directed acyclic graphs (DAGs), which offer systematic representations of causal relationships, have become an established framework for the analysis of causal inference in epidemiology, often being used to determine covariate adjustment sets for minimizing confounding bias. DAGitty is a popular web application for drawing and analysing DAGs. Here we introduce the R package 'dagitty', which provides access to all of the capabilities of the DAGitty web application within the R platform for statistical computing, and also offers several new functions. We describe how the R package 'dagitty' can be used to: evaluate whether a DAG is consistent with the dataset it is intended to represent; enumerate 'statistically equivalent' but causally different DAGs; and identify exposure-outcome adjustment sets that are valid for causally different but statistically equivalent DAGs. This functionality enables epidemiologists to detect causal misspecifications in DAGs and make robust inferences that remain valid for a range of different DAGs. The R package 'dagitty' is available through the comprehensive R archive network (CRAN) at https://cran.r-project.org/web/packages/dagitty/. The source code is available on github at https://github.com/jtextor/dagitty. The web application 'DAGitty' is free software, licensed under the GNU general public licence (GPL) version 2 and is available at http://dagitty.net/.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Textor et al. (2016) studied this question.

synapsesocial.com/papers/69d76170b843b2be9948f819https://doi.org/10.1093/ije/dyw341
Ask AI
Helpful
Bookmark
Share
View Full Paper