Package: DAGassist 0.3.1

DAGassist: Align Regressions with Target Estimands
Provides tools 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. Supports exporting 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>.
Authors:
DAGassist_0.3.1.tar.gz
DAGassist_0.3.1.zip(r-4.7-any)DAGassist_0.3.1.zip(r-4.6-any)DAGassist_0.3.1.zip(r-4.5-any)
DAGassist_0.3.1.tgz(r-4.6-any)DAGassist_0.3.1.tgz(r-4.5-any)
DAGassist_0.3.1.tar.gz(r-4.7-any)DAGassist_0.3.1.tar.gz(r-4.6-any)
DAGassist_0.3.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
DAGassist/json (API)
| # Install 'DAGassist' in R: |
| install.packages('DAGassist', repos = c('https://grahamgoff.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/grahamgoff/dagassist/issues
Pkgdown/docs site:https://grahamgoff.com
- toy_dag - DAG behind toy_data
- toy_data - Toy data for demonstrating causal roles
- turnout_dag - DAG behind turnout_data
- turnout_data - Simulated data on income and voter turnout
Last updated from:16d0cc826f. Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | NOTE | 207 | ||
| source / vignettes | OK | 382 | ||
| linux-release | NOTE | 149 | ||
| macos-release | NOTE | 202 | ||
| macos-oldrel | NOTE | 204 | ||
| windows-devel | NOTE | 102 | ||
| windows-release | NOTE | 105 | ||
| windows-oldrel | NOTE | 130 | ||
| wasm-release | OK | 115 |
Exports:%>%add_edges_robustnessbad_controls_inbalance_modelsclassify_nodesDAGassistpdag_robustness
Dependencies:backportsbayestestRbootbroomcheckmateclicpp11crayoncurldagittydata.tabledatawizarddotwhiskerdplyrfarverFormulagenericsggplot2gluegridExtragtableinsightisobandjsonlitelabelinglatticelifecyclemagrittrmarginaleffectsMASSMatrixparameterspatchworkperformancepillarpkgconfigpurrrR6RColorBrewerRcpprlangS7scalesstringistringrtibbletidyrtidyselectutf8V8vctrsviridisLitewithrwritexl
Last update: 2026-09-27
Started: 2026-02-19
Last update: 2026-09-27
Started: 2025-09-09
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Diagnose robustness to added ("missing") edges | add_edges_robustness |
| flag bad controls (mediator/collider/desc of Y) among a candidate set | bad_controls_in |
| Balance diagnostics across a list of fitted models | balance_models |
| Classify DAG nodes | classify_nodes |
| Generate and/or export report that classifies nodes, compares models, and (optionally) target causal estimands. | DAGassist |
| Diagnose adjustment-set and role robustness to uncertain edge directions | pdag_robustness |
| Print an edge-addition (exclusion) robustness summary | print.DAGassist_addedge_summary |
| Print a PDAG robustness summary | print.DAGassist_pdag_summary |
| Print method for DAGassist reports | print.DAGassist_report |
| Print node classifications (aligned) | print.DAGassist_roles |
| Minimal, clean printout for validation results with color coding | print.DAGassist_validation |
| DAG behind toy_data | toy_dag |
| Toy data for demonstrating causal roles | toy_data |
| DAG behind turnout_data | turnout_dag |
| Simulated data on income and voter turnout | turnout_data |
