<p>Firstly, the diff-in-diff already is a fixed effects estimation. If you run a regression with FE and your time variant terms ($S_i*T_t$ and $T_t$) as in the plain and simple diff-in-diff setup, as such:</p>

<p>$$ Y_{it}=B_0+B_1T_t+B_2S_i+B_3S_i*T_t+e_{it} (1)$$ </p>

<p>You should obtain similar results. Secondly, your specification -- since it will be on a multiple treatment setup -- should consider if your treated groups in different periods of time are disjoint, that is, if a unit of observation might receive the treatment multiple times. Considering that adding a fixed effects in time might be convenient for your estimation, as you were considering, I would work with the following specification if the the treated groups are disjoint:</p>

<p>$$ Y_{it}=\alpha_0+\alpha_1S_i*T_t+\alpha_2S2_i*T2_t+v_t+u_i+e_{it} (2)$$ </p>

<p>And if they are not disjoint, I would consider a interaction between the treatment effects:</p>

<p>$$ Y_{it}=\beta_0+\beta_1S_i*T_t+\beta_2S2_i*T2_t+\beta_3(S_i*T_t)*(S2_i*T2_t)+v_t+u_i+e_{it} (3)$$</p>

<p>You should also consider <a href="https://stats.stackexchange.com/questions/160359/difference-in-difference-method-how-to-test-for-assumption-of-common-trend-betw">testing the common trend hypothesis</a>, since you still need an adequate control group. </p>

CC BY-SA 3.0
2017-06-19T21:58:00.173Z
2017-06-20T16:57:03.287Z
2017-06-20T16:57:03.287Z
John Doe
<p>Suppose I have a group of 100 counties. Further suppose that the state decides to allocate a lump sum amount of money to some counties each year to boost spending on education in that county (until, say, 50 of the 100 counties have received money). Suppose my goal is to use a dif-in-dif approach to analyze the effect of the spending increase. </p>

<p>How would I specify this DID regression? The basic idea is that, for each year, I want to compare educational outcomes in counties that receive increased funding with those that do not. I want to do this so that I eventually get to evaluate the effect for all 50 counties that receive this educational funding boost. </p>

<p>My guess is something like this: I need to specify a typical DID regression with year and county FE s.t. for any given year, a county that receives funding is in the treated group and any county without the funding boost is in the control group. However, the effect of that funding boost means that a county treated in year $t$ ought not be included in the control group in year $t+1$, despite not receiving a funding boost in $t+1$. </p>

<p>Am I over complicating this? It doesn't seem to me like specifying a normal DID with year and county FE will quite work.</p>

CC BY-SA 3.0
2017-03-22T17:09:27.977Z
I am almost certain that the answer is using a generalized DID approach where we have two-way fixed effects for county and year and then a treatment term, where the parameter of interest is that attached to the treatment term. So, I've almost convinced myself that I was wrong for thinking the generalized DID wouldn't work here. Any thoughts?
123
<microeconomics><econometrics><applied-econometrics><identification>
Specifying a Diff-In-Diff with multiple treated groups over multiple years
123
# Specifying a Diff-In-Diff with multiple treated groups over multiple years

(Asked by: username_0 on 2017-03-22)

Suppose I have a group of 100 counties. Further suppose that the state decides to allocate a lump sum amount of money to some counties each year to boost spending on education in that county (until, say, 50 of the 100 counties have received money). Suppose my goal is to use a dif-in-dif approach to analyze the effect of the spending increase.

How would I specify this DID regression? The basic idea is that, for each year, I want to compare educational outcomes in counties that receive increased funding with those that do not. I want to do this so that I eventually get to evaluate the effect for all 50 counties that receive this educational funding boost.

My guess is something like this: I need to specify a typical DID regression with year and county FE s.t. for any given year, a county that receives funding is in the treated group and any county without the funding boost is in the control group. However, the effect of that funding boost means that a county treated in year $t$ ought not be included in the control group in year $t+1$, despite not receiving a funding boost in $t+1$.

Am I over complicating this? It doesn't seem to me like specifying a normal DID with year and county FE will quite work.

**Tags:** microeconomics, econometrics, applied-econometrics, identification
> **Comments:**
> **username_0**: I am almost certain that the answer is using a generalized DID approach where we have two-way fixed effects for county and year and then a treatment term, where the parameter of interest is that attached to the treatment term. So, I've almost convinced myself that I was wrong for thinking the generalized DID wouldn't work here. Any thoughts?  

---

## 1 answers

### Answer by username_1 on 2017-06-19. Score: 2

Firstly, the diff-in-diff already is a fixed effects estimation. If you run a regression with FE and your time variant terms ($S\_i\*T\_t$ and $T\_t$) as in the plain and simple diff-in-diff setup, as such:

$$ Y\_{it}=B\_0+B\_1T\_t+B\_2S\_i+B\_3S\_i\*T\_t+e\_{it} (1)$$

You should obtain similar results. Secondly, your specification -- since it will be on a multiple treatment setup -- should consider if your treated groups in different periods of time are disjoint, that is, if a unit of observation might receive the treatment multiple times. Considering that adding a fixed effects in time might be convenient for your estimation, as you were considering, I would work with the following specification if the the treated groups are disjoint:

$$ Y\_{it}=\alpha\_0+\alpha\_1S\_i\*T\_t+\alpha\_2S2\_i\*T2\_t+v\_t+u\_i+e\_{it} (2)$$

And if they are not disjoint, I would consider a interaction between the treatment effects:

$$ Y\_{it}=\beta\_0+\beta\_1S\_i\*T\_t+\beta\_2S2\_i\*T2\_t+\beta\_3(S\_i\*T\_t)\*(S2\_i\*T2\_t)+v\_t+u\_i+e\_{it} (3)$$

You should also consider [testing the common trend hypothesis](https://stats.stackexchange.com/questions/160359/difference-in-difference-method-how-to-test-for-assumption-of-common-trend-betw), since you still need an adequate control group.


---

