DAGassist: Test Robustness with Directed Acyclic Graphs

Provides robustness checks to align estimands with the identification that they require. Given a 'dagitty' object and a model specification, 'DAGassist' classifies variables by causal roles, flags problematic controls, and generates a report comparing the original model with minimal and canonical adjustment sets. Exports publication-grade reports in 'LaTeX', 'Word', 'Excel', 'dotwhisker', or plain text/'markdown'. 'DAGassist' is built on 'dagitty', an 'R' package that uses the 'DAGitty' web tool (<https://dagitty.net/>) for creating and analyzing DAGs. Methods draw on Pearl (2009) <doi:10.1017/CBO9780511803161> and Textor et al. (2016) <doi:10.1093/ije/dyw341>.

Version: 0.2.7
Depends: R (≥ 3.5)
Imports: broom, cli, crayon, dagitty, magrittr, stats, tools, utils, writexl, dplyr, ggplot2, dotwhisker
Suggests: devtools, fixest, ggdag, knitr, modelsummary, rmarkdown, testthat (≥ 3.0.0), tidyverse, DiagrammeR
Published: 2025-11-11
DOI: 10.32614/CRAN.package.DAGassist
Author: Graham Goff ORCID iD [aut, cre], Michael Denly ORCID iD [aut]
Maintainer: Graham Goff <goffgrahamc at gmail.com>
BugReports: https://github.com/grahamgoff/DAGassist/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://github.com/grahamgoff/DAGassist, https://grahamgoff.github.io/DAGassist/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: DAGassist results

Documentation:

Reference manual: DAGassist.html , DAGassist.pdf
Vignettes: Supported Models (source, R code)
Get Started (source, R code)
Getting Started with Report Creation (source, R code)
quick-tour (source, R code)

Downloads:

Package source: DAGassist_0.2.7.tar.gz
Windows binaries: r-devel: DAGassist_0.2.7.zip, r-release: DAGassist_0.2.7.zip, r-oldrel: DAGassist_0.2.7.zip
macOS binaries: r-release (arm64): DAGassist_0.2.7.tgz, r-oldrel (arm64): DAGassist_0.2.7.tgz, r-release (x86_64): DAGassist_0.2.7.tgz, r-oldrel (x86_64): DAGassist_0.2.7.tgz
Old sources: DAGassist archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=DAGassist to link to this page.