Docs · Engines

Causal DAG

Native causal directed-acyclic graphs for epidemiology and inference. Declare nodes by role — `exposure`, `outcome`, `confounder`, `mediator`, `unobserved` — and the engine colour-codes them and lays out the diagram so the causal story reads left-to-right. Bidirected (`---`) edges render as dashed double-headed arcs for unmeasured association.

Templates
52
Source language
plaintext
Workstation
Studio
Engine id
causaldag

In the same space

Most users come to Causal DAG from DAGitty or Hand-drawn causal diagrams. Glyph runs this engine in the browser — no install, shareable via URL, exportable to PNG / SVG / PDF / source.

Syntax at a glance

exposure E "Smoking"
outcome O "Lung cancer"
confounder C "Age"
E -> O
C -> E
C -> O

Paste this in the Studio code pane to see Causal DAG render live. The full grammar is at the upstream-docs link above.

Sample templates

All 52
Engine reference: causaldag · ← Browse all engines · Quick-start guide