Skip to content
Causal DAG templates

Confounding (Causal DAG)

The classic coffee-smoking-heart-disease example.

Template previewCausal DAG
Confounding: coffee, smoking, heart diseaseXCoffee drinkingYHeart diseaseZSmokingADJUST FORExposureOutcomeConfounderMediatorUnobservedIdentifiable — adjust for `Smoking`.Adjust for `Smoking` — a minimal sufficient set. Conditioning on it blocks every backdoor path from `Coffee drinking` to `Heart disease`, and no proper subset of …

Make it your own.

title "Confounding: coffee, smoking, heart disease"
exposure X "Coffee drinking"
outcome Y "Heart disease"
confounder Z "Smoking"
Z -> X
Z -> Y
X -> Y