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 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 gap | Weeks 0 to 7 | Weeks 8 to 15 | Difference |
|---|---|---|---|
| parallel trends | 5.00 | 7.00 | 2.00 |
| treated 0.3 a week faster | 6.05 | 10.45 | 4.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 a week, before and after launch, the estimate absorbs all of it:
In words: 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 : 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.