Scott Alexander: Stop Confounding Yourself! →
This is closely related to my posts “Adding a Variable Measured with Error to a Regression Only Partially Controls for that Variable” and Statistically Controlling for Confounding Constructs is Harder than You Think—Jacob Westfall and Tal Yarkoni. A reader pointed me to this. It has a very nice example of confounding in it.