How do you test for parallel trends in a difference in differences setting?
Difference in differences (DID) is a popular method for estimating causal effects of policies or interventions in economic research. It compares the changes in outcomes between two groups, one that is exposed to the treatment and one that is not, before and after the treatment. However, DID relies on a crucial assumption: the parallel trends assumption. This means that the two groups would have followed the same trend in the absence of the treatment, and any difference between them is due to the treatment. How do you test for parallel trends in a DID setting? Here are some tips and tricks to help you.