Causal DAG
Directed acyclic graph for causal inference (à la DAGitty).
What this template contains
- Graph
- Directed
- Edges
- 7
- Source
- 16 lines
When to use it
Choose this to make causal assumptions explicit before discussing adjustment or interpretation. A DAG describes an assumed causal structure; drawing an arrow does not establish a causal effect, and it does not replace a participant or record-selection flow. Compare it in research reporting diagram templates
Make it your own.
digraph CausalDAG {
rankdir=LR;
node [shape=circle, style="filled", fillcolor="#dbeafe", fontname="Inter"];
edge [color="#1e293b"];
Exposure [fillcolor="#fde68a"];
Outcome [fillcolor="#bbf7d0"];
Confounder [fillcolor="#fecaca"];
Mediator;
Collider;
Confounder -> Exposure;
Confounder -> Outcome;
Exposure -> Mediator -> Outcome;
Exposure -> Outcome;
Exposure -> Collider;
Outcome -> Collider;
}