Difference-in-differences subtracts what the two easy comparisons keep
Each easy comparison is the right answer plus one bias:
In words: DiD is the difference in differences, . Both lines are true for any four numbers, so they need no assumption. On the worked example:
The same 4 sits inside both wrong answers. The pre-launch gap is what's wrong with after-only, and the control group's change is what's wrong with before-and-after. Difference-in-differences subtracts both.
The practice data works the same way. The treated cities start 5 higher, every city rises 0.4 a week, and the true effect is 2. The pre weeks are 0 to 7 and the post weeks 8 to 15, so the two periods' midpoints are 8 weeks apart. After-only should land near , and before-and-after near . Over 2,000 simulated panels they average 7.00 and 5.20, and difference-in-differences averages 2.00.
In the editor, write easy_answers(m): both easy comparisons and the difference in differences, from the four means.