Difference-in-Differences with Continuous Treatment

09/18/2023 Updates:

Intro and Motivation

Potential Outcome: $Y_{i,t}(D)$ indicates individual $i$'s potential outcome at time $t$ with treatment $D$

Infeasible Causal Effect: $Y_{i,t}(d) - Y_{i,t}(0)$

Alternatively, can consider average treatment effect (ATE) instead: $E[Y_{i,t}(d) - Y_{i,t}(0)]$

$$E[Y_{i,t}(d)- Y_{i,t}(0)] = E[Y_{i,t}(d)]- E[Y_{i,t}(0)] = E[Y_{i,t}|D=d] - E[Y_{i,t}|D=0]$$

then, we can simply calculate the simple averages of those with treatment $D=d$ and $D=0$, then subtract the two to estimate the treatment effect.

$$ E[Y_{i,t}(d) - Y_{i,t}(0)|D=d]$$

Basic Diff-in-Diff

Main idea of diff-in-diff:

$$ E[Y_{i,t} - Y_{i,t-1}|D=d] $$ $$ E[Y_{i,t}(0) - Y_{i,t-1}(0)|D=d] = E[Y_{i,t}(0) - Y_{i,t-1}(0)|D=0] $$

Diff-in-Diff with Covariates (Controls)

The parallel trends assumption is not a verifiable assumption as it concerns the counterfactual state of the world. Nevertheless, some would argue that the parallel trend assumption is more plausible if conditioning on controls. Abadie (2005) demonstrates this by assuming the following so called conditional parallel trends assumption:

$$ E[Y_{i,t}(0) - Y_{i,t-1}(0)|X,D=d] = E[Y_{i,t}(0) - Y_{i,t-1}(0)|X,D=0] $$

where $X$ is individual level covariates that don't vary over time.

Continuous Diff-in-Diff Under Double Machine Learning (DML)

Under assumptions, my job market paper shows that for a positive treatment intensity $D=d$, the causal effect $ATT(d)$ has the following expression:

$$ ATT(d) = E[Y_t-Y_{t-1}|D=d] - E[(Y_t-Y_{t-1})\mathbf{1}\{D=0\}\frac{f_{D|X}(d)}{f_{D}(d)P(D=0|X)}]\quad (\star)$$

We can directly use this expression to estimate $ATT(d)$, but it can suffer from two potential sources of biases

The double/debiased machine learning (DML) framework tackles these biases in two ways:

We omit the theoretical discussion to the influential paper CCDDHNR (2018) and my job market paper.

Comments on the Code