Draw a causal diagram

Turn a supplied causal graph into a clear figure, with adjustment sets checked against the graph.

Skill: dag

Example prompt

/dss-agent-skills:dag study.dag --exposure heat --outcome birthweight
Check the available adjustment sets and render a figure from this graph. Preserve the causal structure.

Use this after installing the collection. Adapt the filenames and research decisions to your project.

What the agent does

  • Identifies exposure, outcome, and other node roles from the supplied graph.
  • Computes adjustment sets with dagitty and distinguishes alternatives.
  • Builds and inspects a PDF, refining labels and connections.

Requirements

R with dagitty; XeLaTeX with TikZ and standalone; a PDF rasterizer or viewer.

Browse the source and supporting files.