Questions tagged [difference-in-difference]

Often abbreviated DID or DD, this is a technique for inferring causality from observational data. It involves comparing measurements before and after a treatment occurs (hence, the growth rate) in both a group that received the treatment, and an otherwise comparable group that did not.

Difference-in-difference (DD) is a version of fixed effects estimation. It uses longitudinal data to estimate the effect of a treatment administered at a certain point in time. The idea is to follow units having a common trend in the outcome variable $Y$ in period $t_1$ before the treatment. Some units are then treated ($T$) and some remain untreated controls ($C$). All units are observed again at time $t_2$ after the treatment. The difference-in-difference treatment effect $\delta$ is the average change experienced by the treatment units compared to the average change experienced by the control units,

$$\delta = (E[Y_{T,t_{2}}] - E[Y_{T,t_{1}}]) - (E[Y_{C,t_{2}}] - E[Y_{C,t_{1}}]).$$

The common pre-treatment trend assumption on $Y$ is important to make the argument that a different rate of change for the treated group after the treatment compared to the control group is due to the treatment itself and not due to unobserved factors. Differencing removes fixed but not time-invariant effects.

770 questions
23
votes
2 answers

Difference in Difference method: how to test for assumption of common trend between treatment and control group?

Following a comment from a previous thread, I want to know how one can test for the assumption of common trend between the treatment and control group in the Difference in Difference method? Can I test that assumption with data of two time points…
Khan
  • 451
  • 2
  • 5
  • 12
4
votes
1 answer

How to account for endogenous program placement?

When we do the standard difference in difference to find the causal impact of a policy, do we assume that the assignment to treatment and control groups was random? In other words, if my program was specifically targeted to a particular group (say…
kbhavni
  • 91
3
votes
1 answer

Why DID estimator is ATT?

A generalized DID has the equation as below $Y_{it}$ = $\alpha$ + $\beta$ $(Leniency Law)_{kt}$ + $\delta$$X_{ikt}$ + $\theta$$_t$ + $\gamma$$_i$ +$\epsilon$$_{it}$ where i,k, and t index firms, countries, and years respectively. $X_{ikt}$ is a…
3
votes
1 answer

When does the weight of DD estimator become negative?

In reading this paper of Bacon,2018 , I saw a paragraph I also explain why the negative weights occur: when already-treated units act as controls, changes in their treatment effects over time get subtracted from the DD estimate. This negative…
3
votes
1 answer

Testing parallel trends in staggered difference-in-differences

When creating the time dummies, what is the value for the control group? Always $0$? Also, I standardized the time dimension ($t=1$ in the treatment year, $t=0$ is the year before the treatment, $t=-1$ is two years before the treatment, $t=2$ is one…
3
votes
0 answers

Difference-in-differences vs controlling for baseline imbalance on outcome

Let's say we have data from a small 2-arm pilot trial with baseline imbalance. I wish to compare two approaches to the analysis: Regression of endline (post-treatment) outcome data on an indicator of study arm that controls for baseline values on…
3
votes
1 answer

Difference-in-difference with multiple periods and one more interaction

I have a question with the non traditional diff in diff with multiple periods. I currently have a balanced panel data with simple diff in diff in multiple periods treatment which could be written as: $Y_{ist}=α+γs(\text{Treatments})+λ(\text{year…
2
votes
1 answer

Difference-in-differences with two treatments

I have two groups. Group 1 received intervention A and Group 2 received intervention B. I'm interested in seeing if intervention A is more effective than intervention B. People cannot be enrolled in both interventions at the same time. Am I able to…
2
votes
0 answers

In a differences in differences model with continuous treatment, what is the parallel trends assumption?

How is there a parallel trends assumption if there is no formally defined treatment group?
2
votes
1 answer

Is it a must to test for parallel trends using different sub-groups in difference-in-differences?

I am testing the movement of a whole sample after an event by using generalized difference-in-differences (DiD) with staggered event dates. The whole sample satisfies the parallel trend assumption. I want to subsample the whole sample into two parts…
2
votes
1 answer

What fixed effects should be controlled for in a DDD specification?

I am following work by Borusyak, 2021 which uses a triple-difference design: In triple-difference designs, the data have three dimensions, such as regions $i$, demographic groups $g$, and periods $t$. Conventional static OLS estimation is based on…
2
votes
1 answer

How many leads do we include for parallel trends testing in daily data (Difference-in-Differences)?

Regarding using generalized difference-in-differences, we normally use the joint null test for 2 or 3 years before the event year. For example, in this answer, @Thomas Bilach mentioned we may perform the joint null test for 3 years before the event…
2
votes
1 answer

What is the reasonable approach to deal with DiD for multiple time periods and groups? (staggered DiD)

Two-way fixed effect (TWFE) has been used for 2 decades for examining the change of some particular objectives after an event, or "generalized Difference-in-Differences (DiD)". However, Goodman, 2018, Imai and Kim, 2020 and Chaisemartin,2020 and…
2
votes
0 answers

How to estimate the length of time that the treatment is effective?

I'm using a difference-in-differences design to estimate the effect of an external shock on electoral turnout. (The treatment group received the shock, the control group did not, and the groups satisfy the parallel trend assumption.) I have eight…
Seth B
  • 21
2
votes
1 answer

Is it wrong when ignoring the event year in generalized Difference-in-Difference?

In a generalized Difference in Difference for staggered year event, from this discussion, we need to include the event year to the sample. For example, if Korea passed the law in 1997, so post*treat should receive the value of 0 for 1995 and 1996…
1
2 3 4 5