Causal Terror
Information flow Β· confounder, mediator, collider Β· exercise β†’ heart health Β· the three rules of do-calculus
Β© Dr. Rainer DΓΌsing Β· Interactive Tools by Claude
When are two things associated, and what should I take into account in an analysis? Here you learn it step by step.
Stages – please choose a stage: ↓
Stage 1
Why are two things associated? An association arises when information can flow between them β€” along arrows, no matter which direction they point. That is important to understand: in data we initially see only associations, not the causal direction. The direction comes only from our theoretical model. For the data, it does not matter which way we believe(!) an arrow points. There are three basic patterns, and they differ in what happens when you adjust for a variable. Each pattern comes with a research question. Choose a pattern and compare A and C without and with adjustment for B.
Adjusting means: you compare only people who are equal on B (a group with the same B value). This is also called β€œcontrolling for B” or β€œpartialling out B”. In the scatter plot you see this as colored groups.
Edge and path: An edge is a single arrow between two variables. A path consists of one or more edges. In A β†’ B β†’ C there are two edges, but only one path from A to C.
Pattern & information flow
Arrow strength 0.70
Data: A against C
Path A – Cβ€”
Association r β€” without adjustmentβ€”
Association r β€” with adjustment for Bβ€”
Remember: what adjusting does to the path
Pattern
Without adjustment
With adjustment
Consequence
Mediator (Chain)
Path open
Path blocked
Closes a causal path. The part running through B is no longer part of the estimate of the total effect. This only makes sense if you want to exclude exactly this part (direct effect).
Confounder (Fork)
Path open: spurious association
Path blocked
Closes an unwanted path: the spurious association disappears.
Collider
Path closed
Path opened
Opens a previously closed, unwanted path: an association arises that does not exist in the world.