Parallel Trends in Interventions (Difference-in-Differences)
The credibility of a DiD design depends on parallel trends. Even with a continuous policy scaling up, we want to know if places adopting the seed faster were already growing their yield anyway. We can do a basic check by dividing the districts into “Early/High Adopters” vs “Late/Low Adopters”.
- Define “early” or “high” seed adoption districts vs “never/low” adoption.
- Use
bys district_id: egen max_seed = max(seed)to create a variable that captures the maximum level of seed adoption in each district over the entire period. - Use
sum max_seed, detailto get the median value ofmax_seedand thenr(p50)to store it in a local macro. - Use the sorted median value to create a dummy variable equal to
1if the district’smax_seedis greater than the median value ofmax_seed, and0otherwise.
- Use
- Use
collapseto calculate the meanevi_medby year for both theHighAdoptdistricts and the remaining districts. - Plot the trend using
twoway connectedand put anxlineat the year of the first seed introduction (2011).
- Save the figure and input it into your Overleaf document.
- Visually inspect the pre-adoption period. Do the two groups appear to have parallel trends? State your finding in comments.