Block 3: Difference-in-differences

Week 4 · Causality II · Imai §2.5.3 · about 4 min

NoteHow this works

Run each cell with Run Code, look at the output, then answer the question at the end of the block. Every cell is editable; Start Over resets it. Errors are information: read them.

The data are prepared for you: fullPropBefore and fullPropAfter exist for each restaurant, in minwageNJ and minwagePA. (The setup runs in the background.)

1. Change within each state

2. Difference-in-differences

(NJ change) minus (PA change).

Conclusion: What does the Pennsylvania change tell us, and what is the DiD?
NJ rose by +2.4 points, PA fell by -3.8. PA shows what happens without the law: shares were falling. Subtracting that trend gives DiD = 2.4 - (-3.8) = +6.2 points: no evidence that the law cost jobs.