{
  "_id": "6ae0904b8d250e7ad09eccae",
  "Package": "DAGassist",
  "Title": "Align Regressions with Target Estimands",
  "Version": "0.3.1",
  "Authors@R": "c(\nperson(\"Graham\", \"Goff\",\nemail = \"goffgrahamc@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-0717-6995\")),\nperson(\"Michael\", \"Denly\",\nemail = \"mdenly@tamu.edu\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0002-7074-5011\"))\n)",
  "Maintainer": "Graham Goff <goffgrahamc@gmail.com>",
  "Description": "Provides tools to align estimands with the identification\nthat they require. Given a 'dagitty' object and a model\nspecification, 'DAGassist' classifies variables by causal\nroles, recovers a target estimand, and generates a report\ncomparing the original model with DAG-derived adjustment sets.\nSupports exporting publication-grade reports in 'LaTeX',\n'Word', 'Excel', 'dotwhisker', or plain text/'markdown'.\n'DAGassist' is built on 'dagitty', an 'R' package that uses the\n'DAGitty' web tool (<https://dagitty.net/>) for creating and\nanalyzing DAGs. Methods draw on Pearl (2009)\n<doi:10.1017/CBO9780511803161> and Textor et al. (2016)\n<doi:10.1093/ije/dyw341>.",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/grahamgoff/DAGassist,\nhttps://grahamgoff.com/DAGassist/",
  "BugReports": "https://github.com/grahamgoff/DAGassist/issues",
  "VignetteBuilder": "knitr",
  "Config/Needs/website": "pkgdown, rmarkdown, htmltools",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "Config/roxygen2/version": "8.0.0",
  "LazyData": "true",
  "Config/pak/sysreqs": "libicu-dev libssl-dev libnode-dev zlib1g-dev",
  "Repository": "https://grahamgoff.r-universe.dev",
  "Date/Publication": "2026-09-27 16:33:51 UTC",
  "RemoteUrl": "https://github.com/grahamgoff/dagassist",
  "RemoteRef": "HEAD",
  "RemoteSha": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-27 11:47:39 UTC",
    "User": "root"
  },
  "Author": "Graham Goff [aut, cre] (ORCID: <https://orcid.org/0000-0002-0717-6995>),\nMichael Denly [aut] (ORCID: <https://orcid.org/0000-0002-7074-5011>)",
  "_user": "grahamgoff",
  "_type": "src",
  "_file": "DAGassist_0.3.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/895c2ea9b752df27e3dfe643718b19246102b3dcacd4132a94cd0e4c917fd347",
  "_filesize": 1499501,
  "_sha256": "895c2ea9b752df27e3dfe643718b19246102b3dcacd4132a94cd0e4c917fd347",
  "_expires": "2027-02-04T11:51:37.000Z",
  "_created": "2026-10-27T11:47:39.000Z",
  "_published": "2026-10-27T11:51:39.183Z",
  "_upstream": "https://github.com/grahamgoff/dagassist",
  "_status": "success",
  "_maintainer": {
    "name": "Graham Goff",
    "email": "goffgrahamc@gmail.com",
    "login": "grahamgoff",
    "description": "Ph.D. student @ UT Austin Department of Government",
    "uuid": 226808638,
    "orcid": "0000-0002-0717-6995"
  },
  "_jobs": [
    {
      "job": 122171082698,
      "time": 207,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12732351884"
    },
    {
      "job": 122171082851,
      "time": 149,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12732132265"
    },
    {
      "job": 122171082956,
      "time": 204,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "12731678044"
    },
    {
      "job": 122171082705,
      "time": 202,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12731358714"
    },
    {
      "job": 122168395057,
      "time": 382,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12731727607"
    },
    {
      "job": 122171082603,
      "time": 115,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12731418361"
    },
    {
      "job": 122171082759,
      "time": 102,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12731333351"
    },
    {
      "job": 122171082931,
      "time": 130,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "12731942505"
    },
    {
      "job": 122171082887,
      "time": 105,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12731253797"
    }
  ],
  "_buildurl": "https://github.com/r-universe/grahamgoff/actions/runs/40497998510",
  "_commit": {
    "id": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
    "author": "Graham Goff <goffgrahamc@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #43 from grahamgoff/dev\n\nDev",
    "time": 1790526831
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "broom",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "crayon",
      "role": "Imports"
    },
    {
      "package": "dagitty",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tools",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "writexl",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "dotwhisker",
      "role": "Imports"
    },
    {
      "package": "fixest",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "ggdag",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "modelsummary",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "marginaleffects",
      "role": "Suggests"
    },
    {
      "package": "WeightIt",
      "role": "Suggests"
    },
    {
      "package": "DirectEffects",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "readxl",
      "role": "Suggests"
    }
  ],
  "_owner": "grahamgoff",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-44",
      "n": 2
    },
    {
      "week": "2025-45",
      "n": 2
    },
    {
      "week": "2025-46",
      "n": 7
    },
    {
      "week": "2025-52",
      "n": 1
    },
    {
      "week": "2026-02",
      "n": 4
    },
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 4
    },
    {
      "week": "2026-26",
      "n": 4
    },
    {
      "week": "2026-32",
      "n": 1
    },
    {
      "week": "2026-33",
      "n": 2
    },
    {
      "week": "2026-34",
      "n": 2
    },
    {
      "week": "2026-39",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.2.5",
      "date": "2025-11-03"
    },
    {
      "name": "v0.2.6",
      "date": "2025-11-10"
    },
    {
      "name": "v0.2.7",
      "date": "2025-11-10"
    },
    {
      "name": "v0.2.8",
      "date": "2026-02-19"
    },
    {
      "name": "v.0.3.0",
      "date": "2026-08-19"
    }
  ],
  "_topics": [
    "causal-inference",
    "dag",
    "robustness"
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "grahamgoff",
      "count": 448,
      "uuid": 226808638
    }
  ],
  "_userbio": {
    "uuid": 226808638,
    "type": "user",
    "name": "Graham Goff",
    "followers": 2,
    "description": "Ph.D. student @ UT Austin Department of Government"
  },
  "_downloads": {
    "count": 265,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/DAGassist"
  },
  "_devurl": "https://github.com/grahamgoff/dagassist",
  "_pkgdown": "https://grahamgoff.com/DAGassist/",
  "_searchresults": 4,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/DAGassist.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/grahamgoff/dagassist",
  "_realowner": "grahamgoff",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.4",
      "date": "2025-09-21"
    },
    {
      "version": "0.2.7",
      "date": "2025-11-11"
    },
    {
      "version": "0.2.8",
      "date": "2026-02-20"
    },
    {
      "version": "0.3.0",
      "date": "2026-08-19"
    }
  ],
  "_exports": [
    "%>%",
    "add_edges_robustness",
    "bad_controls_in",
    "balance_models",
    "classify_nodes",
    "DAGassist",
    "pdag_robustness"
  ],
  "_datasets": [
    {
      "name": "toy_dag",
      "title": "DAG behind toy_data",
      "object": "toy_dag",
      "class": [
        "dagitty"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "toy_data",
      "title": "Toy data for demonstrating causal roles",
      "object": "toy_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "A",
        "B",
        "Z",
        "X",
        "M",
        "Y",
        "C"
      ],
      "rows": 2000,
      "table": true,
      "tojson": true
    },
    {
      "name": "turnout_dag",
      "title": "DAG behind turnout_data",
      "object": "turnout_dag",
      "class": [
        "dagitty"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "turnout_data",
      "title": "Simulated data on income and voter turnout",
      "object": "turnout_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "turnout",
        "income",
        "state",
        "age",
        "polint",
        "industry",
        "elect_comp"
      ],
      "rows": 5000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_edges_robustness",
      "title": "Diagnose robustness to added (\"missing\") edges",
      "topics": [
        "add_edges_robustness"
      ]
    },
    {
      "page": "bad_controls_in",
      "title": "flag bad controls (mediator/collider/desc of Y) among a candidate set",
      "topics": [
        "bad_controls_in"
      ]
    },
    {
      "page": "balance_models",
      "title": "Balance diagnostics across a list of fitted models",
      "topics": [
        "balance_models"
      ]
    },
    {
      "page": "classify_nodes",
      "title": "Classify DAG nodes",
      "topics": [
        "classify_nodes"
      ]
    },
    {
      "page": "DAGassist",
      "title": "Generate and/or export report that classifies nodes, compares models, and (optionally) target causal estimands.",
      "topics": [
        "DAGassist"
      ]
    },
    {
      "page": "pdag_robustness",
      "title": "Diagnose adjustment-set and role robustness to uncertain edge directions",
      "topics": [
        "pdag_robustness"
      ]
    },
    {
      "page": "print.DAGassist_addedge_summary",
      "title": "Print an edge-addition (exclusion) robustness summary",
      "topics": [
        "print.DAGassist_addedge_summary"
      ]
    },
    {
      "page": "print.DAGassist_pdag_summary",
      "title": "Print a PDAG robustness summary",
      "topics": [
        "print.DAGassist_pdag_summary"
      ]
    },
    {
      "page": "print.DAGassist_report",
      "title": "Print method for DAGassist reports",
      "topics": [
        "print.DAGassist_report"
      ]
    },
    {
      "page": "print.DAGassist_roles",
      "title": "Print node classifications (aligned)",
      "topics": [
        "print.DAGassist_roles"
      ]
    },
    {
      "page": "print.DAGassist_validation",
      "title": "Minimal, clean printout for validation results with color coding",
      "topics": [
        "print.DAGassist_validation"
      ]
    },
    {
      "page": "toy_dag",
      "title": "DAG behind toy_data",
      "topics": [
        "toy_dag"
      ]
    },
    {
      "page": "toy_data",
      "title": "Toy data for demonstrating causal roles",
      "topics": [
        "toy_data"
      ]
    },
    {
      "page": "turnout_dag",
      "title": "DAG behind turnout_data",
      "topics": [
        "turnout_dag"
      ]
    },
    {
      "page": "turnout_data",
      "title": "Simulated data on income and voter turnout",
      "topics": [
        "turnout_data"
      ]
    }
  ],
  "_pkglogo": "https://github.com/grahamgoff/dagassist/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/grahamgoff/dagassist/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "bayestestR",
    "boot",
    "broom",
    "checkmate",
    "cli",
    "cpp11",
    "crayon",
    "curl",
    "dagitty",
    "data.table",
    "datawizard",
    "dotwhisker",
    "dplyr",
    "farver",
    "Formula",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "insight",
    "isoband",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "marginaleffects",
    "MASS",
    "Matrix",
    "parameters",
    "patchwork",
    "performance",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "V8",
    "vctrs",
    "viridisLite",
    "withr",
    "writexl"
  ],
  "_vignettes": [
    {
      "source": "DAGassist.Rmd",
      "filename": "DAGassist.html",
      "title": "Introduction to DAGassist",
      "author": "Graham Goff and Michael Denly",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Step 0: Load DAGassist",
        "Step 1: Declare an Estimand",
        "Step 2: Draw a DAG",
        "-----------------------",
        "Contract type (baseline; affects edu_year, income, children)",
        "Scores: Permanent higher for higher class + urban; Informal higher for immigrant",
        "Numeric index for linear effects (Informal=0, Temporary=1, Permanent=2)",
        "Preference for children (baseline; affects children only)",
        "Interpretable desired children: ~0 to 5, centered at ~2",
        "Centered version for linear predictors",
        "helper: map degree to target years of schooling",
        "---- Try loop: redraw endogenous noise until calibration holds ----",
        "Job stability (time-varying; treatment-induced intermediate Z)",
        "- affected by edu_true (treatment) and baseline contract",
        "- affects mediators (income, married, birth_control) and outcome (children)",
        "baseline level at t=0",
        "---- Example usage ----",
        "Calibration check (what we target)",
        "Attainment realism (adult-only)",
        "Degree-type result (adult, completed degrees)",
        "Step 3: Classify Control Variables by Role",
        "Step 4: Estimate Models Using DAG-Consistent Adjustment Sets",
        "Step 5: Recover the Interpretable Estimand",
        "Export Publication-Grade Reports",
        "Testing DGP Uncertainty with PDAGs",
        "Testing Missing Arrows with add_edges()",
        "References"
      ],
      "created": "2026-02-19 20:21:19",
      "modified": "2026-09-27 16:33:51",
      "commits": 9
    },
    {
      "source": "compatibility.Rmd",
      "filename": "compatibility.html",
      "title": "Supported Models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Notes",
        "Example usage",
        "estimatr::lm_robust",
        "fixest::feglm",
        "fixest::feols",
        "lfe::felm",
        "lme4::glmer",
        "lmerTest::lmer",
        "MASS::glm.nb",
        "stats::lm"
      ],
      "created": "2025-09-09 03:16:16",
      "modified": "2026-09-27 16:33:51",
      "commits": 5
    }
  ],
  "_score": 5.7160033436347994,
  "_indexed": true,
  "_nocasepkg": "dagassist",
  "_universes": [
    "grahamgoff"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-10-27T11:50:44.000Z",
      "distro": "resolute",
      "commit": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
      "fileid": "https://r2.ropensci.org/152aeee4c49b563c2777c9ca6470bf28641ee71c12c714884a44bf935615d5a4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/grahamgoff/actions/runs/40497998510"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-10-27T11:49:58.000Z",
      "distro": "resolute",
      "commit": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
      "fileid": "https://r2.ropensci.org/2a392492887d0eec6eaa73269bcfc8fd231b1a37864810c56bf23d74b1aeabeb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/grahamgoff/actions/runs/40497998510"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-10-27T11:50:23.000Z",
      "commit": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
      "fileid": "https://r2.ropensci.org/c23e30461d30f2e39e5dedb07a0ffdfd17a94b8aedc77b92df9330cff7f4f495",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/grahamgoff/actions/runs/40497998510"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-10-27T11:50:00.000Z",
      "commit": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
      "fileid": "https://r2.ropensci.org/b2072ba878a337bdf8f5628b9eb929dc1d16e6ccc9b0d8e206ccddc4fa5678e5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/grahamgoff/actions/runs/40497998510"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-10-27T11:49:51.000Z",
      "commit": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
      "fileid": "https://r2.ropensci.org/172e94576672dd66b707e49a5294dfa8f8fc375c302bec51f7ae60b93b775c38",
      "status": "success",
      "buildurl": "https://github.com/r-universe/grahamgoff/actions/runs/40497998510"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-10-27T11:48:55.000Z",
      "commit": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
      "fileid": "https://r2.ropensci.org/a4ce7cf1246d1e942b98bd1720911cd346b6c58525f81a39812d9fc298b07537",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/grahamgoff/actions/runs/40497998510"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-10-27T11:49:29.000Z",
      "commit": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
      "fileid": "https://r2.ropensci.org/0d1d1259269a0faefff82af20e994aaa9f4fb3544a65745c89100d1618c1592c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/grahamgoff/actions/runs/40497998510"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-10-27T11:48:59.000Z",
      "commit": "16d0cc826fe8cfeef9ab368432d84e4ebd799d6f",
      "fileid": "https://r2.ropensci.org/b0a2578407bf8f6716648d663e05fbbab49249efae38317c1ccbc013df06a54e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/grahamgoff/actions/runs/40497998510"
    }
  ]
}