Cited by 2,295Advanced Causal Inference TechniquesBayesian Modeling and Causal InferenceStatistical Methods in Epidemiology

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

Open access
Textor, Johannes, van der Zander, Benito, Gilthorpe, Mark S., Liśkiewicz, Maciej, Ellison, George T.H.·2017·International Journal of Epidemiology

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/].

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1093/ije/dyw341

Cites

19 of 19 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 4

  1. Greenland S, Pearl J, Robins JM. Causal diagrams for epidemiologic research. Epidemiol Camb Mass. 1999 Jan;10(1):37-48.
  2. Rothman KJ, Greenland S, Lash TL. Modern Epidemiology. Lippincott Williams & Wilkins; 2008. 776 p.
  3. Textor J, Hardt J, Knüppel S. DAGitty: A Graphical Tool for Analyzing Causal Diagrams. Epidemiology. 2011;5(22):745.
  4. Gansner ER, North SC. An open graph visualization system and its applications to software engineering. Softw -Pract Exp. 2000;30(11):1203-1233.

Cited by

Sorted by citations

Authors
Textor, J., van der Zander, B., Gilthorpe, M. S., Liśkiewicz, M., & Ellison, G. T. H.
Affiliations
  • Radboud University Medical Center (NL)
  • University of Leeds (GB)
  • University of Lübeck (DE)
Corresponding author
Textor, Johannes
Venue
International Journal of Epidemiology
Published
2017-01-15
Volume
45
Issue
6
Pages
dyw341
ISSN
  • 0300-5771 (ISSN-L)
  • 1464-3685
OpenAlex
W2576536258
Cited by
2,295
References
19
Citations by year
2026: 156 · 2025: 409 · 2024: 451 · 2023: 392 · 2022: 323 · 2021: 256 · 2020: 201 · 2019: 74 · 2018: 22 · 2017: 6 · 2016: 2 · 2012: 1
FWCI
35.46
Type
journal article
Language
en
Open access
Locations
  • International Journal of Epidemiology (publishedVersion)
  • PubMed (publishedVersion)
  • White Rose Research Online (University of Leeds, The University of Sheffield, University of York) (acceptedVersion)
  • Radboud Repository (Radboud University) (submittedVersion)
Topics
  • Physical Sciences › Mathematics › Statistics and Probability › Advanced Causal Inference Techniques
  • Physical Sciences › Computer Science › Artificial Intelligence › Bayesian Modeling and Causal Inference
  • Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods in Epidemiology
Keywords
directed acyclic graphs, causal inference, R package, adjustment sets, confounding
MeSH terms
Data Interpretation, Statistical, Epidemiologic Methods, Humans, Software, Bias, Causality, Confounding Factors, Epidemiologic

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review