Professional Documents
Culture Documents
Difference-In-Difference: Rus'an Nasrudin
Difference-In-Difference: Rus'an Nasrudin
Rus’an Nasrudin
Nov 2, 2021
2 Example
3 Theory
4 Standard Error
5 Extension
Table of Contents
1 Introduction
2 Example
3 Theory
4 Standard Error
5 Extension
Canonical DiD
History
Table of Contents
1 Introduction
2 Example
3 Theory
4 Standard Error
5 Extension
Richardson and Troost (2009) studied the impact of monetary policy during the great
depression of 1930s in the US1 .
Ease money policy is, rarely, an random event. Fortunately, they had two districts
observation with (Atlanta) and without (St. Louis) ease money policy.
It allows to evaluate its impact on banking and economic performance.
They found that central bank intervention influenced bank health, credit availability and
business activity.
1
Richardson, Gary, and William Troost. ”Monetary intervention mitigated banking panics during the great
depression: quasi-experimental evidence from a federal reserve district border, 1929–1933.” Journal of Political
Economy 117.6 (2009): 1031–1073.
Rus’an Nasrudin Difference-in-difference Nov 2, 2021 7 / 38
Example
Graphical illustration
The algebra
Let Ydt be the number of banks open in district d and time t. d = {Atlanta, St.Louis} and
t = {1930, 1931}.
Or
Counterfactual
In 2005, a first step to have a universal health insurance had began in Indonesia.
The nation-wide health insurance for the poor was introduce, namely Askeskin.
Sparrow et al. (2013) utilise mini Susenas to evaluate the programme impact on health
care access and health spending of the beneficiaries to the comparison group2 .
They found that Askeskin increases health care access measured by outpatient utilisation
with side effect of the increasing out of pocket spending for those who received it.
2
Sparrow, Robert, Asep Suryahadi, and Wenefrida Widyanti. ”Social health insurance for the poor:
Targeting and impact of Indonesia’s Askeskin programme.” Social science & medicine 96 (2013): 264–271.
Rus’an Nasrudin Difference-in-difference Nov 2, 2021 11 / 38
Example
Duflo (2001) estimates the schooling and labour market consequences of SD Inpres
programme in Indonesia in the 1970s.
Exploiting the regional variations of the school construction, she found that:
Each primary school constructed per 1000 children led to an average increase of 0.12 to
0.19 years of education.
The programme, also, corresponds to 1.5 to 2.7 percent increase in wage.
Impact of SD Inpres
Table of Contents
1 Introduction
2 Example
3 Theory
4 Standard Error
5 Extension
βi = β + ηi
OLS is similar to taking differences in observed changes over time in the average outcomes for the treatment
(T = 1) and the control group (T = 0).
The Difference-in-Difference estimator takes form:
Implementation
Proof:
Three ingredients
Back to Example 2
An important test to defend as robustness of the estimate in the DiD set up is the parallel
trend assumption.
What to report? Yes, those two lines of observed outcome in the pre-treatment period.
Yet, it is hard to get. Thus, a qualitative argument is important.
Table of Contents
1 Introduction
2 Example
3 Theory
4 Standard Error
5 Extension
One important note about the DiD estimate is that it is a special case of estimation with
panel data.
The repetitive nature of the dataset raises serial correlation meaning the values of variable for
nearby periods are likely to be similar.
When the dependent variable is serially correlated, the residuals often serially correlated as well.
A combination of these serial correlations changes the formula to calculate the standard errors.
Often, simple standard error formula will exaggerate the precision of the estimates.
The robust standard error discussed in the CEF topic provides correct standard error for
heteroskedasticity.
As for the serially correlated challenge, the appropriate formula in this case is known as the
clustered standard error.
The rule of thumb is that the unit that serially correlated, i.e. observation, is the unit of the
cluster.
Formal discussion about the non-standard issue for standard error will be covered in meeting
14th.
Table of Contents
1 Introduction
2 Example
3 Theory
4 Standard Error
5 Extension
There are several tests to show the robustness of the treatment effect with DiD estimates.
One is the test that postulate past treatment predict current outcome while future treatment
does not. It turns that we expect a statistically insignificant estimate of β+ in the equation
like:
m
X Xq
yi,t = γi + λt + β−τ Ti,t−τ + β+τ Ti,t+τ + Xit δ + εit
τ =0 τ =1
It follows the spirit of Granger (1969) in which to see whether causes happen before
consequences and not vice versa.
In the two period observations, the test collapse into a pre-treatment placebo testing like:
Similar to above, we expect β to be not statistically significant to show the lead does not
affect outcome.
One robustness test used in DiD set up is the inclusion of subject specific time trend.
It allows treatment and control subject to follow different trend. The rule is if the estimated
effect of interest are unchanged by the inclusion of these trends, it is promising and
discouraging otherwise.
Note however, we only allow to do the test if we have at least 3 periods in our data.
Let’s see the example from section 5.2 of Mastering Metrics..
Ideal trend
Stable coefficient
Implementation
Denote individual i located in district d who being exposed to treatment T based on those
location, the specification that captures different locational time trend is:
Where γ1st is district specific trend coefficient multiplied by time trend variable. The
specification allows treatment and control district to follow different trend (Autor 2003).
Implementation
Where γdt is district specific trend coefficient that are common across subgroup, λat is the
time-varying subgroup effect, and θsd is the district-specific subgroup effects. This
triple-differences approach may generate a more convincing set of results in the presence of
composition changes.