Journal of Causal Inference (Jan 2024)

Comparison of open-source software for producing directed acyclic graphs

  • Pitts Amy J.,
  • Fowler Charlotte R.

DOI
https://doi.org/10.1515/jci-2023-0031
Journal volume & issue
Vol. 12, no. 1
pp. 37 – 48

Abstract

Read online

Many software packages have been developed to assist researchers in drawing directed acyclic graphs (DAGs), each with unique functionality and usability. We examine five of the most common software to generate DAGs: TikZ, DAGitty, ggdag, dagR, and igraph. For each package, we provide a general description of its background, analysis and visualization capabilities, and user-friendliness. In addition, in order to compare packages, we produce two DAGs in each software, the first featuring a simple confounding structure and the second with a more complex structure with three confounders and a mediator. We provide recommendations for when to use each software depending on the user’s needs.

Keywords