Example 1 — Coffee, smoking and heart disease
Show the steps and the answer
Overall: coffee drinkers ; non-drinkers .
Pooled together, coffee drinkers have about twice the rate, which is the association that needs explaining.
Link to coffee: of coffee drinkers smoke, against of non-drinkers.
A confounder must be tied to the explanatory variable, and smoking clearly is.
Link to the outcome: among smokers, and ; among non-smokers, and .
Smoking quadruples the rate, from 5% to 20%, so it is tied to the response as well.
Compare within groups: coffee makes no difference among smokers (20% and 20%) or non-smokers (5% and 5%).
Once smokers are compared with smokers, the coffee gap vanishes, so smoking produced it.
Answer: Yes. Smoking is linked to both coffee drinking and heart disease, and within each smoking group the rates are equal, so in these data the overall gap (13.2% against 6.6%) is due to smoking, not coffee.
Takeaway: Check both links, then compare within levels of the suspected confounder; if the gap disappears, the confounder caused it.