Confounding (Causal DAG)
The classic coffee-smoking-heart-disease example.
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
The classic coffee-smoking-heart-disease example.
title "Confounding: coffee, smoking, heart disease"
exposure X "Coffee drinking"
outcome Y "Heart disease"
confounder Z "Smoking"
Z -> X
Z -> Y
X -> Y