A causal diagram, or directed acyclic graph (DAG), draws each variable once
and an arrow wherever one directly affects another. Epidemiologists use it to
decide what a study must adjust for. This one is the worked example from Ian
Shrier and Robert Platt’s
Reducing bias through directed acyclic graphs
(2008): does warming up before a game (green diamond) lower the risk of injury
(red diamond)?
Warming up acts through the player’s balance and coordination during the
game, intra-game proprioception: the two green arrows labelled effect of
warm-up. Every orange arrow labelled backdoor lies on a path that runs from
warm-up back through one of its causes and on to injury without passing a
collider, such as warm-up ← team motivation ← coach → fitness level →
neuromuscular fatigue → injury. Those paths mix other causes into a plain
comparison of players who warm up with those who do not. The paper’s answer is
to adjust for neuromuscular fatigue and tissue weakness (blue squares): all
nine backdoor paths pass through fatigue or tissue weakness. Grey arrows lie
on no such path.
The buttons change how direction is drawn: arrowheads, links that taper toward
the effect, or animated flow along each arrow. The positions are those of
DAGitty’s drawing of the same diagram.
13 nodes and 19 links.
The variables and arrows are those of the main example in Shrier I, Platt RW,
Reducing bias through directed acyclic graphs, BMC Medical Research
Methodology 8:70 (2008), an open access article under the Creative Commons
Attribution License, as encoded in the examples of
DAGitty, with DAGitty’s positions for the
variables. The paths were found by listing every path from warm-up to injury
that starts against an arrow, with no collider along the way.
An agent built the network with Garphield’s MCP server
command-line tool from node-link JSON with each variable’s position, bound
colour to the variable’s role, shape to a field of shape names, link colour
to the path a link is on and link labels to a short phrase, and set arrows,
a larger arrowhead and wider links. The node surface was set to Sketchy in
the workbench before saving, so variables and links look hand-drawn while
the arrowheads stay solid. The buttons send edges.style to the embed.
All gallery networks