14/36
Part 3 of 6 · Parallel trendsLearn and do

A trend gap of g a week, kept after launch, adds g times the weeks between the period midpoints

A gap in the slopes doesn't stop at the launch.

The gap the practice formula expects, before noise
46810120815weekthe gap
parallel trends treated cities trend 0.3 a week faster

The launch is week 8. With parallel trends the gap steps up by the effect, 2. With the extra trend it climbs all the way.

Average gapWeeks 0 to 7Weeks 8 to 15Difference
parallel trends5.007.002.00
treated 0.3 a week faster6.0510.454.40

Each line in the figure is the gap the practice formula expects, treated minus control, week by week, and the table averages it over each period. With parallel trends, the gap sits at 5, then steps up by the effect, 2. With the treated cities trending 0.3 a week faster, the gap climbs the whole time.

Difference-in-differences compares the average gap after launch with the average gap before. So it picks up the climb along with the step. If the treated group's trend is steeper by gg a week, before and after launch, the estimate absorbs all of it:

bias=g×(wˉpost−wˉpre)\text{bias} = g \times (\bar w_{\text{post}} - \bar w_{\text{pre}})

In words: wˉ\bar w is the average week number in each period. The bias is the slope gap times the distance between the two periods' middles.

In the practice data the pre weeks average 3.5 and the post weeks 11.5, 8 weeks apart. So every 0.1 a week of extra trend adds 0.8. Take a practice panel with g=0.3g = 0.3: over 2,000 simulated panels the estimate averages 4.4 where the true effect is 2, and pre_trend_gap averages 0.30.

That's the job of the check. A gap of 0.3 a week tells you not to report 4.4.

In the editor, write trend_bias(g, pre_weeks, post_weeks): what a trend gap adds to the estimate.