Test Robustness with Directed Acyclic Graphs
Overview
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.
Highlights
- PDAG robustness features:
pdaganduncertain_edgesarguments forDAGassist()and a standalonepdag_robustness()function diagnose how adjustment sets and covariate roles change when introducing uncertain edges. - Added automated balance diagnostics: the console report now flags variables whose |SMD| > 0.1 between the Original and DAG-derived models, addressing missingness-induced apples-to-oranges model comparisons.
- Additional robustness feature:
add_edges_robustnessto evaluate robustness to hypothesized missing edges. - Extended support for balance and weight diagnostics under non-console export formats.
- Changed estimand terminology for methodological accuracy (SATE -> total effect; SACDE -> direct effect), as DAGassist cannot recover a true SATE or SACDE from continuous treatments.
- Bug fixes
Breaking changes
- Changed valid estimand parameter values ("SATE" -> "total"; "SACDE" -> "direct").
- Phased out support for "ATT" estimand due to estimand variability across binary and continuous treatments. Future updates may reintroduce the ATT estimand.
This is the CRAN version.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-11
Show 2 earlier changesHide 2 earlier changes
- WARNING12 OK, 1 WARNING2026-05-10
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 13 (2 internal)
- Examples that run
- 100%5 run in a plain check (4 of them under a condition)
- Exported functions with examples
- 71%
- Documented parameters
- 88%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Get Started HTML
- Supported Models HTML
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
Issues over time
PRs over time
Commits over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/grahamgoff/dagassist on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-06 · The repository has a site deploy workflow
pkgdown site last built 2026-10-06
Show all practicesHide 1 practice
Dependencies
Installing DAGassist adds 50 packages (23 with compiled code, 50 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.
- insight through dotwhisker → marginaleffectsfix by Nov 14
Code & Tests
People & History
Package metadata
- First published
- 2025-09-21
- Total releases
- 4 / 1 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5
- Download size
- 936 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("DAGassist")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.