Skip to content

DAGassist

Test Robustness with Directed Acyclic Graphs

v0.2.8 · Feb 20, 2026 · GPL (>= 2)

Description

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, recovers a target estimand, and generates a report comparing the original model with DAG-derived 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>.

Downloads

239

Last 30 days

18556th

732

Last 90 days

2.1K

Last year

Trend: +32% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘DAGassist-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: bad_controls_in
> ### Title: flag bad controls (mediator/collider/desc of Y) among a
> ###   candida
...[truncated]...
fy(Y ~ X + M + Z, M ~ X + Z, C ~ X + Y, exposure = "X", 
+     outcome = "Y")
Error in loadNamespace(x) : there is no package called ‘ggdag’
Calls: withAutoprint ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 11, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE May 10, 2026
WARNING r-devel-linux-x86_64-debian-gcc

PDF version of manual

LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies broom cli crayon dagitty magrittr writexl dplyr ggplot2 dotwhisker DAGassist

Version History

4 tracked
new 0.2.8 Mar 10, 2026
updated 0.2.8 ← 0.2.7 diff Feb 19, 2026
updated 0.2.7 ← 0.2.4 diff Nov 10, 2025
new 0.2.4 Sep 20, 2025