Confounding and adjustment
Change parameters and inspect the actual computation behind confounding and adjustment.
| T=0 | T=1 | |
|---|---|---|
| C=0 | 0.2 | 0.8 |
| C=1 | 0.8 | 0.2 |
4.4Unadjusted mean difference
2Adjusted average treatment effect
Toy model: P(C=1)=0.5, Y=2T+bC, P(T=1|C=1)=a, P(T=1|C=0)=1−a. C affects treatment and outcome; adjustment within C strata recovers the true effect of 2.
Predict the effect of changing a parameter before inspecting the output. Identify the responsible term in the formula and explain how the teaching model differs from a real application.