Continuous Interacted DiD (Difference-in-Differences)
The true value of Swarna-Sub1 (the STRV seed) is measured when districts flood. Let’s interact the continuous seed treatment with the flood index c.bin_max_60_611.
- Run a regression of
evi_medagainst the interaction of our two continuous variablesc.seed##c.bin_max_60_611using fully specified Two-Way Fixed Effects (i.e.,xtregwith, feandi.year). - Cluster your standard errors at the
district_idlevel. - Save the results using
eststoand call itdid3.
- Adapt the table code from Exercise 1 to add one more column (for
did3) and place the table into Overleaf: - In the relevant section/subsection of your Overleaf file, evaluate the coefficient of the interaction term
c.seed#c.bin_max_60_611. What does a positive or negative sign tell us about how the seed mediates the impact of floods on yield?