SlideShare una empresa de Scribd logo
1 de 22
Descargar para leer sin conexión
Difference-in-Difference
Methods
Day 2, Lecture 1
By Ragui Assaad
Training on Applied Micro-Econometrics
and Public Policy Evaluation
July 25-27, 2016
Economic Research Forum
Type I Methods Identification
Assumptions
“conditional exogeneity of placement”
or
“conditional exogeneity of placement to changes in outcomes”
• “Conditional exogeneity of placement” was discussed in the context
of regular regression and propensity score matching and weighting
models.
• It simply means that selection into treatment is assumed not to depends
on any unobservables that affect outcomes
• “conditional exogeneity of placement to changes in outcomes” is a
much weaker assumption.
• Here we distinguish between two kinds of unobservables, time invariant
unobservables and time varying unobservables.
• Under this assumption, selection can depend on time invariant
unobservables, but is assumed not to depend on time-varying
unobservables
First Difference and Difference-in
Difference Approaches
• Under the stronger “conditional exogeneity of
placement”, all we needed to do is compare
outcomes for a treatment and control group at one
point in time controlling for observables X
– This is called a first difference approach (see D(X) estimator)
• Under the weaker “exogeneity of placement to
changes in outcomes” we need to compare the
difference from before and after the program for a
treatment group to the same difference for a control
group.
– This is called difference-in-difference or second difference
approach
The Identification Assumption
Graphically
The Difference-in-Difference Estimator
DD(X ) = E(Y1
T
-Y0
T
| X ,T1
=1)- E(Y1
C
-Y0
C
| X,T1
= 0)
If identifying assumption is met, then
DD(X) = E(G1
| X ,T1
=1) = ATT(X )
If the counterfactual expectations are not expected to
change over time, then the term on the right is zero
E(Y1
C
-Y0
C
| X,T1
=1) = 0
Under such an assumption, the DiD estimator
reduces to the Before and After (BA) estimator on
the treated group, making measurement on a
comparison group unnecessary
BA(X ) = E(Y1
T
-Y0
T
| X,T1
=1)
Such an assumption is unlikely to hold in practice.. Gives
Data Structures for DiD Estimation
When we have multiple observations on the same units, we
effectively have panel data
• Panel data can come in a number of different shapes
• Let’s talk about shapes with a person-time period
structure (say, before and after)
• “Long” data: an individual shows up twice, once in time period 0
and once in time period 1. An observation is an individual in a time
period
• “Wide” data: an observation is a person, and there are different
variables for each time period
Notation for data shapes
(in STATA)
• i is a unique ‘logical observation’ (like a person, who may
then be observed over time)
• j is a ‘sub-observation’ (like a time period—people are
observed in time periods)
• x_ij are variables that can change over i and j (people and
time), like employment status
• Some variables are ‘time-varying,’ and can change over
time (i.e. income or employment status)
• Some variables are ‘time invariant’ and cannot change
over time (i.e. sex)
• Data entry errors or other issues may make time invariant variables
time-varying in actual data
7
Long Data: An Example
• An observation is a
person (id=i) in a
year(=j)
• A person has multiple
observations (multiple
years)
• inc (income) is time
varying (x_ij)
• Sex is time invariant
8
Wide data: an example
• An observation is a
person (id=i)
• A person has only one
observation
• There is still only one
variable for sex (time
invariant)
• Now there are three
variables for income
• One for each year
• There is no more year
variable—it is a suffix
on income
9
Reshaping Data from Long to Wide
and vice versa
• You can use the “reshape” command in STATA
to reshape data from long to wide and vice
versa.
• However before you do that, you need to know
what form your data is in.
• The “duplicate report” command on the unique
individual identifier can allow you to do that.
Estimating the DD Estimator in Practice:
The Regression Approach
• Shape the data up as “long”, with each observation being an individual i time
period t
• Run a regression of the outcome (Yit) on the treatment status (Ti1), a time
dummy (t) (t=0, before, t=1, after) (Ti0 = 0, by definition)
Yit
=a +bTi1
t +gTi1
+dt +eit
Calculate the following expectations:
E(Yi0
|Ti1
= 0) =a
E(Yi1
|Ti1
= 0) =a +d
E(Yi0
|Ti1
=1) =a +g
Note: We can ignore the X’s since this regression does not et have
covariates. I also dropped the T and C superscripts since we only
observed treatment for treated observations and non-treatment for
comparison observations
E(Yi1
|Ti1
=1) =a +b +g +d
SD1 = E(Yi1
|Ti1
=1)- E(Yi1
|Ti1
= 0) = (a +b +g +d)-(a +d) = b +g
SD0
= E(Yi0
|Ti1
=1)- E(Yi0
|Ti1
= 0) = (a +g)-(a) =g
Estimating the DD Estimator in Practice:
The Regression Approach
The Single Difference Estimator after Treatment is given by:
The Single Difference Estimator before Treatment is given by:
You can think of this estimator as measuring the effect of
selection – the difference between treatment and
comparisons observations before any treatment is applied.
• The Difference-in-Difference Estimator or the Double
Difference estimators is given by:
Estimating the DD Estimator in Practice:
The Regression Approach
DD = SD1
-SD0
= b
Thus, under the weaker Type I identification assumptions,
the effect of the treatment on the treated (ATT) is given by
the regression coefficient β, which is the coefficient of the
interaction term between the treatment dummy and the
time dummy.
SD1 is an unbiased measured of ATT if and only if ϒ=0,
which means there is no selection.
Introducing Covariates
• It is easy to introduce covariates in DiD estimation
Yit
=a +bTi1
t +gTi1
+dt + qj
Xitj
j
å +eit
All the expectations can now be written given X.
ATT is still equal to β.
To obtain heterogeneous effects, all you ned to
do is interact β & ϒ with the Xs.
An Example: Wahba and Assaad (2014). Flexible
Labor Regulations and Informality in Egypt
• Studies the effects of the 2003/04 labor law on informality
of employment in Egypt
• Research Design
• Two observation periods
• 1998-2002 pre-intervention P=0 (P=post)
• 2004-2008 post-intervention P=1
• Two groups of private non-agricultural wage workers who would be
differentially affected are observed over a 5-yer period, either pre-
or post-intervention
• Workers initially non-contracted working for formal/semiformal
enterprises (F) (T=1)
• Workers initially non-contracted working in informal enterprises (I) (T=0)
• Contention is that second group of workers unlikely to be affected by new
labor law
Wahba and Assaad (2014)
• Estimation Equation
Where:
Cit is a dummy indicating the contract status of the worker
Tit is a dummy indicating belonging to F (versus i)
Pit is a dummy indicating post
Xit is a vector of observables including individual characteristics,
such as gender, education and region, GDP growth rates, annual
unemployment rates, a time trend variable capturing the time
since the job started
We posit that δ captures he effect of the law.
Cit
=a +bTit
+g Pit
+dTit
Pit
+jXit
+eit
Difference-in-Difference Estimates of the Determinants of
Acquiring a Job Contract
α α+β β α+ϒ α+β+ϒ+δ β+δ δ
Falsification Tests
• The identifying assumption for DiD means that the trend
in the outcome variable between treated and control
observations (conditional on observables) should not be
different absent treatment.
• To check on this, one can check whether the trend is the
same in the pre-treatment period.
• To do this, you will need two points in time prior to treatment
begins.
• The same regression is carried out for that pre-treatment period.
The coefficient β needs to be statistically insignificant in this case to
pass the falsification test.
Cross-Sectional Difference-in-
Difference
• DiD estimators do not have to involve measurements
across time.
• Can be done across groups of individuals, with one group
not expected to be affected by treatment.
• E.g.
• Target and non-target villages for micro-credit programs
• Participating and non-participating households
• Non-targeted villages are not expected to be affected, so
difference between participating and non-participating HH
in such villages could be a measure of selection into
participation
• DiD: difference between participants and non-participants in
targeted villages, minus the same difference in non-targeted
villages
Difference-in-Difference and PSM
• One can use DiD in the context of PSM as well
• Matching is still done along pre-treatment characteristics
ATT =(1/NT
) [(Y1 j
T
-Y0 j
t
)
j=1
NT
å - wij
iÎC
å (Y1ij
C
-Y0ij
C
)]
Using “wide” data, calculate Y1j - Y0j at the individual
level and then carry out PSM on that outcome
variable
Wahba and Assaad (2014)
PSM Robustness check:
• Treatment: (as before) is belonging to a formal
firm or informal firm at the beginning of the perio
T=1 in formal firm
T=0 in informal firm
• Outcome: whether individual with no contract in
2002-2004 moved to a contract job in 2004-2008.
Y=1 obtained contract
Y=0 did not obtain contract
• Falsification test
• Do it again for period 1996-98 to 1998-2002
Wahba and Assaad (2014)
Coefficient
(DiD)
Bootstrapped Std Err
Post Policy
(2004-2008)
0.0330** 0.0174
Pre Policy
(1998-2002)
0.0043 0.0145
Covariates used in matching:
Gender, Age, Education, Region of Residence
Conclusion:
• The proportion who moved from no contract to a
contracts in Formal Firms exceeds that of in Informal
Firms by 3.3 percentage points
• No such difference can be seen in the pre-policy period

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Econometrics chapter 8
Econometrics chapter 8Econometrics chapter 8
Econometrics chapter 8
 
Panel slides
Panel slidesPanel slides
Panel slides
 
Introduction to Econometrics
Introduction to EconometricsIntroduction to Econometrics
Introduction to Econometrics
 
ders 7.1 VAR.pptx
ders 7.1 VAR.pptxders 7.1 VAR.pptx
ders 7.1 VAR.pptx
 
Instrumental Variables
Instrumental VariablesInstrumental Variables
Instrumental Variables
 
Ols by hiron
Ols by hironOls by hiron
Ols by hiron
 
Properties of estimators (blue)
Properties of estimators (blue)Properties of estimators (blue)
Properties of estimators (blue)
 
Multiple linear regression II
Multiple linear regression IIMultiple linear regression II
Multiple linear regression II
 
Autocorrelation (1)
Autocorrelation (1)Autocorrelation (1)
Autocorrelation (1)
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 
Generalized linear model
Generalized linear modelGeneralized linear model
Generalized linear model
 
Chapter 4 - multiple regression
Chapter 4  - multiple regressionChapter 4  - multiple regression
Chapter 4 - multiple regression
 
Probit and logit model
Probit and logit modelProbit and logit model
Probit and logit model
 
Confirmatory Factor Analysis
Confirmatory Factor AnalysisConfirmatory Factor Analysis
Confirmatory Factor Analysis
 
Ordinal logistic regression
Ordinal logistic regression Ordinal logistic regression
Ordinal logistic regression
 
The probit model
The probit modelThe probit model
The probit model
 
Methods of multivariate analysis
Methods of multivariate analysisMethods of multivariate analysis
Methods of multivariate analysis
 
Probit model
Probit modelProbit model
Probit model
 
Multicollinearity PPT
Multicollinearity PPTMulticollinearity PPT
Multicollinearity PPT
 
R square vs adjusted r square
R square vs adjusted r squareR square vs adjusted r square
R square vs adjusted r square
 

Destacado

Instrumental Variables and Control Functions
Instrumental Variables and Control FunctionsInstrumental Variables and Control Functions
Instrumental Variables and Control FunctionsEconomic Research Forum
 
Potential Solutions to the Fundamental Problem of Causal Inference: An Overview
Potential Solutions to the Fundamental Problem of Causal Inference: An OverviewPotential Solutions to the Fundamental Problem of Causal Inference: An Overview
Potential Solutions to the Fundamental Problem of Causal Inference: An OverviewEconomic Research Forum
 
Lessons for Democratic Transition in the Arab World
Lessons for Democratic Transition in the Arab WorldLessons for Democratic Transition in the Arab World
Lessons for Democratic Transition in the Arab WorldEconomic Research Forum
 
How to make democratic accountability work better for development?
How to make democratic accountability work better for development?How to make democratic accountability work better for development?
How to make democratic accountability work better for development?Economic Research Forum
 
The Arab Spring: Much Violence, Little Democracy
The Arab Spring: Much Violence, Little DemocracyThe Arab Spring: Much Violence, Little Democracy
The Arab Spring: Much Violence, Little DemocracyEconomic Research Forum
 
Propensity score analysis__statistical_methods_and_applications_advanced_quan...
Propensity score analysis__statistical_methods_and_applications_advanced_quan...Propensity score analysis__statistical_methods_and_applications_advanced_quan...
Propensity score analysis__statistical_methods_and_applications_advanced_quan...Israel Vargas
 
Analytic Methods and Issues in CER from Observational Data
Analytic Methods and Issues in CER from Observational DataAnalytic Methods and Issues in CER from Observational Data
Analytic Methods and Issues in CER from Observational DataCTSI at UCSF
 
Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...
Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...
Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...ICF
 
Special Session on Transition in the Life Course in MENA: Discussion of Pape...
Special Session on Transition in the Life Course  in MENA: Discussion of Pape...Special Session on Transition in the Life Course  in MENA: Discussion of Pape...
Special Session on Transition in the Life Course in MENA: Discussion of Pape...Economic Research Forum
 
panel data simple
panel data simple panel data simple
panel data simple pelangi sepi
 
The Formation of the Youth's Gender Role Attitudes
The Formation of the Youth's Gender Role AttitudesThe Formation of the Youth's Gender Role Attitudes
The Formation of the Youth's Gender Role AttitudesEconomic Research Forum
 

Destacado (20)

Instrumental Variables and Control Functions
Instrumental Variables and Control FunctionsInstrumental Variables and Control Functions
Instrumental Variables and Control Functions
 
Causal Inference and Program Evaluation
Causal Inference and Program EvaluationCausal Inference and Program Evaluation
Causal Inference and Program Evaluation
 
Potential Solutions to the Fundamental Problem of Causal Inference: An Overview
Potential Solutions to the Fundamental Problem of Causal Inference: An OverviewPotential Solutions to the Fundamental Problem of Causal Inference: An Overview
Potential Solutions to the Fundamental Problem of Causal Inference: An Overview
 
Regression Discontinuity Method
Regression Discontinuity MethodRegression Discontinuity Method
Regression Discontinuity Method
 
Overview and Objectives of the Workshop
Overview and Objectives of the WorkshopOverview and Objectives of the Workshop
Overview and Objectives of the Workshop
 
Overview of Mixed Models
Overview of Mixed ModelsOverview of Mixed Models
Overview of Mixed Models
 
Multilevel Binary Logistic Regression
Multilevel Binary Logistic RegressionMultilevel Binary Logistic Regression
Multilevel Binary Logistic Regression
 
How do we do research in economics
How do we do research in economicsHow do we do research in economics
How do we do research in economics
 
Lessons for Democratic Transition in the Arab World
Lessons for Democratic Transition in the Arab WorldLessons for Democratic Transition in the Arab World
Lessons for Democratic Transition in the Arab World
 
Democracy, Elections, and Development
Democracy, Elections, and DevelopmentDemocracy, Elections, and Development
Democracy, Elections, and Development
 
How to make democratic accountability work better for development?
How to make democratic accountability work better for development?How to make democratic accountability work better for development?
How to make democratic accountability work better for development?
 
Forms of Democracy and Development
Forms of Democracy and DevelopmentForms of Democracy and Development
Forms of Democracy and Development
 
Culture and democratization
Culture and democratizationCulture and democratization
Culture and democratization
 
The Arab Spring: Much Violence, Little Democracy
The Arab Spring: Much Violence, Little DemocracyThe Arab Spring: Much Violence, Little Democracy
The Arab Spring: Much Violence, Little Democracy
 
Propensity score analysis__statistical_methods_and_applications_advanced_quan...
Propensity score analysis__statistical_methods_and_applications_advanced_quan...Propensity score analysis__statistical_methods_and_applications_advanced_quan...
Propensity score analysis__statistical_methods_and_applications_advanced_quan...
 
Analytic Methods and Issues in CER from Observational Data
Analytic Methods and Issues in CER from Observational DataAnalytic Methods and Issues in CER from Observational Data
Analytic Methods and Issues in CER from Observational Data
 
Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...
Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...
Evaluating a Propensity Score Adjustment for Combining Probability and Non-Pr...
 
Special Session on Transition in the Life Course in MENA: Discussion of Pape...
Special Session on Transition in the Life Course  in MENA: Discussion of Pape...Special Session on Transition in the Life Course  in MENA: Discussion of Pape...
Special Session on Transition in the Life Course in MENA: Discussion of Pape...
 
panel data simple
panel data simple panel data simple
panel data simple
 
The Formation of the Youth's Gender Role Attitudes
The Formation of the Youth's Gender Role AttitudesThe Formation of the Youth's Gender Role Attitudes
The Formation of the Youth's Gender Role Attitudes
 

Similar a Difference-in-Difference Methods

Impact evaluation in-depth: More on methods and example of impact evaluation ...
Impact evaluation in-depth: More on methods and example of impact evaluation ...Impact evaluation in-depth: More on methods and example of impact evaluation ...
Impact evaluation in-depth: More on methods and example of impact evaluation ...CIFOR-ICRAF
 
#2ECcourse.ppthjjkhkjhkjhjkjhkhhkhkhkhkj
#2ECcourse.ppthjjkhkjhkjhjkjhkhhkhkhkhkj#2ECcourse.ppthjjkhkjhkjhjkjhkhhkhkhkhkj
#2ECcourse.ppthjjkhkjhkjhjkjhkhhkhkhkhkjBereketRegassa1
 
#2ECcourse.pptgjdgjgfjgfjhkhkjkkjhkhkhkjhjkj
#2ECcourse.pptgjdgjgfjgfjhkhkjkkjhkhkhkjhjkj#2ECcourse.pptgjdgjgfjgfjhkhkjkkjhkhkhkjhjkj
#2ECcourse.pptgjdgjgfjgfjhkhkjkkjhkhkhkjhjkjBereketRegassa1
 
Does transfer to intensive care units reduce mortality for deteriorating ward...
Does transfer to intensive care units reduce mortality for deteriorating ward...Does transfer to intensive care units reduce mortality for deteriorating ward...
Does transfer to intensive care units reduce mortality for deteriorating ward...cheweb1
 
Annual Results and Impact Evaluation Workshop for RBF - Day Two - Measuring I...
Annual Results and Impact Evaluation Workshop for RBF - Day Two - Measuring I...Annual Results and Impact Evaluation Workshop for RBF - Day Two - Measuring I...
Annual Results and Impact Evaluation Workshop for RBF - Day Two - Measuring I...RBFHealth
 
Chi square test final
Chi square test finalChi square test final
Chi square test finalHar Jindal
 
Workers’ compensation in construction
Workers’ compensation in constructionWorkers’ compensation in construction
Workers’ compensation in constructionAkash Tilokani
 
Czarnitzki - Towards a portfolio of additionaliyu indicators
Czarnitzki - Towards a portfolio of additionaliyu indicatorsCzarnitzki - Towards a portfolio of additionaliyu indicators
Czarnitzki - Towards a portfolio of additionaliyu indicatorsinnovationoecd
 
Relationship Between Monetary Policy And The Stock Market
Relationship Between Monetary Policy And The Stock MarketRelationship Between Monetary Policy And The Stock Market
Relationship Between Monetary Policy And The Stock MarketCasey Hudson
 
Annual Results and Impact Evaluation Workshop for RBF - Day Six - Introductio...
Annual Results and Impact Evaluation Workshop for RBF - Day Six - Introductio...Annual Results and Impact Evaluation Workshop for RBF - Day Six - Introductio...
Annual Results and Impact Evaluation Workshop for RBF - Day Six - Introductio...RBFHealth
 
Case StudiesMemorial HospitalMemorial Hospital is a privately .docx
Case StudiesMemorial HospitalMemorial Hospital is a privately .docxCase StudiesMemorial HospitalMemorial Hospital is a privately .docx
Case StudiesMemorial HospitalMemorial Hospital is a privately .docxtidwellveronique
 

Similar a Difference-in-Difference Methods (20)

Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...
Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...
Causal Inference Opening Workshop - Bracketing Bounds for Differences-in-Diff...
 
ICAR-IFPRI: Revisiting and other issues - Devesh Roy
ICAR-IFPRI: Revisiting and other issues - Devesh RoyICAR-IFPRI: Revisiting and other issues - Devesh Roy
ICAR-IFPRI: Revisiting and other issues - Devesh Roy
 
Impact evaluation in-depth: More on methods and example of impact evaluation ...
Impact evaluation in-depth: More on methods and example of impact evaluation ...Impact evaluation in-depth: More on methods and example of impact evaluation ...
Impact evaluation in-depth: More on methods and example of impact evaluation ...
 
#2ECcourse.ppthjjkhkjhkjhjkjhkhhkhkhkhkj
#2ECcourse.ppthjjkhkjhkjhjkjhkhhkhkhkhkj#2ECcourse.ppthjjkhkjhkjhjkjhkhhkhkhkhkj
#2ECcourse.ppthjjkhkjhkjhjkjhkhhkhkhkhkj
 
#2ECcourse.pptgjdgjgfjgfjhkhkjkkjhkhkhkjhjkj
#2ECcourse.pptgjdgjgfjgfjhkhkjkkjhkhkhkjhjkj#2ECcourse.pptgjdgjgfjgfjhkhkjkkjhkhkhkjhjkj
#2ECcourse.pptgjdgjgfjgfjhkhkjkkjhkhkhkjhjkj
 
Does transfer to intensive care units reduce mortality for deteriorating ward...
Does transfer to intensive care units reduce mortality for deteriorating ward...Does transfer to intensive care units reduce mortality for deteriorating ward...
Does transfer to intensive care units reduce mortality for deteriorating ward...
 
Understanding statistics in research
Understanding statistics in researchUnderstanding statistics in research
Understanding statistics in research
 
Biostatistics
BiostatisticsBiostatistics
Biostatistics
 
Introduction.pdf
Introduction.pdfIntroduction.pdf
Introduction.pdf
 
Annual Results and Impact Evaluation Workshop for RBF - Day Two - Measuring I...
Annual Results and Impact Evaluation Workshop for RBF - Day Two - Measuring I...Annual Results and Impact Evaluation Workshop for RBF - Day Two - Measuring I...
Annual Results and Impact Evaluation Workshop for RBF - Day Two - Measuring I...
 
Chi square test final
Chi square test finalChi square test final
Chi square test final
 
Workers’ compensation in construction
Workers’ compensation in constructionWorkers’ compensation in construction
Workers’ compensation in construction
 
Czarnitzki - Towards a portfolio of additionaliyu indicators
Czarnitzki - Towards a portfolio of additionaliyu indicatorsCzarnitzki - Towards a portfolio of additionaliyu indicators
Czarnitzki - Towards a portfolio of additionaliyu indicators
 
Session 2 evaluation design
Session 2   evaluation designSession 2   evaluation design
Session 2 evaluation design
 
Relationship Between Monetary Policy And The Stock Market
Relationship Between Monetary Policy And The Stock MarketRelationship Between Monetary Policy And The Stock Market
Relationship Between Monetary Policy And The Stock Market
 
Dummyvariable1
Dummyvariable1Dummyvariable1
Dummyvariable1
 
diff.pdf
diff.pdfdiff.pdf
diff.pdf
 
Annual Results and Impact Evaluation Workshop for RBF - Day Six - Introductio...
Annual Results and Impact Evaluation Workshop for RBF - Day Six - Introductio...Annual Results and Impact Evaluation Workshop for RBF - Day Six - Introductio...
Annual Results and Impact Evaluation Workshop for RBF - Day Six - Introductio...
 
did_jm.pdf
did_jm.pdfdid_jm.pdf
did_jm.pdf
 
Case StudiesMemorial HospitalMemorial Hospital is a privately .docx
Case StudiesMemorial HospitalMemorial Hospital is a privately .docxCase StudiesMemorial HospitalMemorial Hospital is a privately .docx
Case StudiesMemorial HospitalMemorial Hospital is a privately .docx
 

Más de Economic Research Forum

Session 4 farhad mehran, single most data gaps
Session 4 farhad mehran, single most data gapsSession 4 farhad mehran, single most data gaps
Session 4 farhad mehran, single most data gapsEconomic Research Forum
 
Session 3 mahdi ben jelloul, microsimulation for policy evaluation
Session 3 mahdi ben jelloul, microsimulation for policy evaluationSession 3 mahdi ben jelloul, microsimulation for policy evaluation
Session 3 mahdi ben jelloul, microsimulation for policy evaluationEconomic Research Forum
 
Session 3 m.a. marouani, structual change, skills demand and job quality
Session 3 m.a. marouani, structual change, skills demand and job qualitySession 3 m.a. marouani, structual change, skills demand and job quality
Session 3 m.a. marouani, structual change, skills demand and job qualityEconomic Research Forum
 
Session 3 ishac diwn, bridging mirco and macro appraoches
Session 3 ishac diwn, bridging mirco and macro appraochesSession 3 ishac diwn, bridging mirco and macro appraoches
Session 3 ishac diwn, bridging mirco and macro appraochesEconomic Research Forum
 
Session 3 asif islam, jobs flagship report
Session 3 asif islam, jobs flagship reportSession 3 asif islam, jobs flagship report
Session 3 asif islam, jobs flagship reportEconomic Research Forum
 
Session 2 yemen hlel, insights from tunisia
Session 2 yemen hlel, insights from tunisiaSession 2 yemen hlel, insights from tunisia
Session 2 yemen hlel, insights from tunisiaEconomic Research Forum
 
Session 2 samia satti, insights from sudan
Session 2 samia satti, insights from sudanSession 2 samia satti, insights from sudan
Session 2 samia satti, insights from sudanEconomic Research Forum
 
Session 2 mona amer, insights from egypt
Session 2 mona amer, insights from egyptSession 2 mona amer, insights from egypt
Session 2 mona amer, insights from egyptEconomic Research Forum
 
Session 2 ali souag, insights from algeria
Session 2 ali souag, insights from algeriaSession 2 ali souag, insights from algeria
Session 2 ali souag, insights from algeriaEconomic Research Forum
 
Session 2 abdel rahmen el lahga, insights from tunisia
Session 2 abdel rahmen el lahga, insights from tunisiaSession 2 abdel rahmen el lahga, insights from tunisia
Session 2 abdel rahmen el lahga, insights from tunisiaEconomic Research Forum
 
Session 1 ragui assaad, moving beyond the unemployment rate
Session 1 ragui assaad, moving beyond the unemployment rateSession 1 ragui assaad, moving beyond the unemployment rate
Session 1 ragui assaad, moving beyond the unemployment rateEconomic Research Forum
 
Session 1 luca fedi, towards a research agenda
Session 1 luca fedi, towards a research agendaSession 1 luca fedi, towards a research agenda
Session 1 luca fedi, towards a research agendaEconomic Research Forum
 
من البيانات الى السياسات : مبادرة إتاحة البيانات المنسقة
من البيانات الى السياسات : مبادرة إتاحة البيانات المنسقةمن البيانات الى السياسات : مبادرة إتاحة البيانات المنسقة
من البيانات الى السياسات : مبادرة إتاحة البيانات المنسقةEconomic Research Forum
 
The Future of Jobs is Facing the Biggest Policy Induced Price Distortion in H...
The Future of Jobs is Facing the Biggest Policy Induced Price Distortion in H...The Future of Jobs is Facing the Biggest Policy Induced Price Distortion in H...
The Future of Jobs is Facing the Biggest Policy Induced Price Distortion in H...Economic Research Forum
 
Job- Creating Growth in the Emerging Global Economy
Job- Creating Growth in the Emerging Global EconomyJob- Creating Growth in the Emerging Global Economy
Job- Creating Growth in the Emerging Global EconomyEconomic Research Forum
 
The Role of Knowledge in the Process of Innovation in the New Global Economy:...
The Role of Knowledge in the Process of Innovation in the New Global Economy:...The Role of Knowledge in the Process of Innovation in the New Global Economy:...
The Role of Knowledge in the Process of Innovation in the New Global Economy:...Economic Research Forum
 
Rediscovering Industrial Policy for the 21st Century: Where to Start?
Rediscovering Industrial Policy for the 21st Century: Where to Start?Rediscovering Industrial Policy for the 21st Century: Where to Start?
Rediscovering Industrial Policy for the 21st Century: Where to Start?Economic Research Forum
 
How the Rise of the Intangibles Economy is Disrupting Work in Africa
How the Rise of the Intangibles Economy is Disrupting Work in AfricaHow the Rise of the Intangibles Economy is Disrupting Work in Africa
How the Rise of the Intangibles Economy is Disrupting Work in AfricaEconomic Research Forum
 
On Ideas and Economic Policy: A Survey of MENA Economists
On Ideas and Economic Policy: A Survey of MENA EconomistsOn Ideas and Economic Policy: A Survey of MENA Economists
On Ideas and Economic Policy: A Survey of MENA EconomistsEconomic Research Forum
 

Más de Economic Research Forum (20)

Session 4 farhad mehran, single most data gaps
Session 4 farhad mehran, single most data gapsSession 4 farhad mehran, single most data gaps
Session 4 farhad mehran, single most data gaps
 
Session 3 mahdi ben jelloul, microsimulation for policy evaluation
Session 3 mahdi ben jelloul, microsimulation for policy evaluationSession 3 mahdi ben jelloul, microsimulation for policy evaluation
Session 3 mahdi ben jelloul, microsimulation for policy evaluation
 
Session 3 m.a. marouani, structual change, skills demand and job quality
Session 3 m.a. marouani, structual change, skills demand and job qualitySession 3 m.a. marouani, structual change, skills demand and job quality
Session 3 m.a. marouani, structual change, skills demand and job quality
 
Session 3 ishac diwn, bridging mirco and macro appraoches
Session 3 ishac diwn, bridging mirco and macro appraochesSession 3 ishac diwn, bridging mirco and macro appraoches
Session 3 ishac diwn, bridging mirco and macro appraoches
 
Session 3 asif islam, jobs flagship report
Session 3 asif islam, jobs flagship reportSession 3 asif islam, jobs flagship report
Session 3 asif islam, jobs flagship report
 
Session 2 yemen hlel, insights from tunisia
Session 2 yemen hlel, insights from tunisiaSession 2 yemen hlel, insights from tunisia
Session 2 yemen hlel, insights from tunisia
 
Session 2 samia satti, insights from sudan
Session 2 samia satti, insights from sudanSession 2 samia satti, insights from sudan
Session 2 samia satti, insights from sudan
 
Session 2 mona amer, insights from egypt
Session 2 mona amer, insights from egyptSession 2 mona amer, insights from egypt
Session 2 mona amer, insights from egypt
 
Session 2 ali souag, insights from algeria
Session 2 ali souag, insights from algeriaSession 2 ali souag, insights from algeria
Session 2 ali souag, insights from algeria
 
Session 2 abdel rahmen el lahga, insights from tunisia
Session 2 abdel rahmen el lahga, insights from tunisiaSession 2 abdel rahmen el lahga, insights from tunisia
Session 2 abdel rahmen el lahga, insights from tunisia
 
Session 1 ragui assaad, moving beyond the unemployment rate
Session 1 ragui assaad, moving beyond the unemployment rateSession 1 ragui assaad, moving beyond the unemployment rate
Session 1 ragui assaad, moving beyond the unemployment rate
 
Session 1 luca fedi, towards a research agenda
Session 1 luca fedi, towards a research agendaSession 1 luca fedi, towards a research agenda
Session 1 luca fedi, towards a research agenda
 
من البيانات الى السياسات : مبادرة إتاحة البيانات المنسقة
من البيانات الى السياسات : مبادرة إتاحة البيانات المنسقةمن البيانات الى السياسات : مبادرة إتاحة البيانات المنسقة
من البيانات الى السياسات : مبادرة إتاحة البيانات المنسقة
 
The Future of Jobs is Facing the Biggest Policy Induced Price Distortion in H...
The Future of Jobs is Facing the Biggest Policy Induced Price Distortion in H...The Future of Jobs is Facing the Biggest Policy Induced Price Distortion in H...
The Future of Jobs is Facing the Biggest Policy Induced Price Distortion in H...
 
Job- Creating Growth in the Emerging Global Economy
Job- Creating Growth in the Emerging Global EconomyJob- Creating Growth in the Emerging Global Economy
Job- Creating Growth in the Emerging Global Economy
 
The Role of Knowledge in the Process of Innovation in the New Global Economy:...
The Role of Knowledge in the Process of Innovation in the New Global Economy:...The Role of Knowledge in the Process of Innovation in the New Global Economy:...
The Role of Knowledge in the Process of Innovation in the New Global Economy:...
 
Rediscovering Industrial Policy for the 21st Century: Where to Start?
Rediscovering Industrial Policy for the 21st Century: Where to Start?Rediscovering Industrial Policy for the 21st Century: Where to Start?
Rediscovering Industrial Policy for the 21st Century: Where to Start?
 
How the Rise of the Intangibles Economy is Disrupting Work in Africa
How the Rise of the Intangibles Economy is Disrupting Work in AfricaHow the Rise of the Intangibles Economy is Disrupting Work in Africa
How the Rise of the Intangibles Economy is Disrupting Work in Africa
 
On Ideas and Economic Policy: A Survey of MENA Economists
On Ideas and Economic Policy: A Survey of MENA EconomistsOn Ideas and Economic Policy: A Survey of MENA Economists
On Ideas and Economic Policy: A Survey of MENA Economists
 
Future Research Directions for ERF
Future Research Directions for ERFFuture Research Directions for ERF
Future Research Directions for ERF
 

Último

Financing strategies for adaptation. Presentation for CANCC
Financing strategies for adaptation. Presentation for CANCCFinancing strategies for adaptation. Presentation for CANCC
Financing strategies for adaptation. Presentation for CANCCNAP Global Network
 
Vasai Call Girls In 07506202331, Nalasopara Call Girls In Mumbai
Vasai Call Girls In 07506202331, Nalasopara Call Girls In MumbaiVasai Call Girls In 07506202331, Nalasopara Call Girls In Mumbai
Vasai Call Girls In 07506202331, Nalasopara Call Girls In MumbaiPriya Reddy
 
Cheap Call Girls In Hyderabad Phone No 📞 9352988975 📞 Elite Escort Service Av...
Cheap Call Girls In Hyderabad Phone No 📞 9352988975 📞 Elite Escort Service Av...Cheap Call Girls In Hyderabad Phone No 📞 9352988975 📞 Elite Escort Service Av...
Cheap Call Girls In Hyderabad Phone No 📞 9352988975 📞 Elite Escort Service Av...kajalverma014
 
Honasa Consumer Limited Impact Report 2024.pdf
Honasa Consumer Limited Impact Report 2024.pdfHonasa Consumer Limited Impact Report 2024.pdf
Honasa Consumer Limited Impact Report 2024.pdfSocial Samosa
 
An Atoll Futures Research Institute? Presentation for CANCC
An Atoll Futures Research Institute? Presentation for CANCCAn Atoll Futures Research Institute? Presentation for CANCC
An Atoll Futures Research Institute? Presentation for CANCCNAP Global Network
 
Dating Call Girls inBaloda Bazar Bhatapara 9332606886Call Girls Advance Cash...
Dating Call Girls inBaloda Bazar Bhatapara  9332606886Call Girls Advance Cash...Dating Call Girls inBaloda Bazar Bhatapara  9332606886Call Girls Advance Cash...
Dating Call Girls inBaloda Bazar Bhatapara 9332606886Call Girls Advance Cash...kumargunjan9515
 
Contributi dei parlamentari del PD - Contributi L. 3/2019
Contributi dei parlamentari del PD - Contributi L. 3/2019Contributi dei parlamentari del PD - Contributi L. 3/2019
Contributi dei parlamentari del PD - Contributi L. 3/2019Partito democratico
 
Top profile Call Girls In Haldia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Haldia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Haldia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Haldia [ 7014168258 ] Call Me For Genuine Models We...gajnagarg
 
9867746289 Independent Call Girls in Mumbai Airport 24/7 - Mumbai Escorts
9867746289 Independent Call Girls in Mumbai Airport 24/7 - Mumbai Escorts9867746289 Independent Call Girls in Mumbai Airport 24/7 - Mumbai Escorts
9867746289 Independent Call Girls in Mumbai Airport 24/7 - Mumbai EscortsPooja Nehwal
 
Scaling up coastal adaptation in Maldives through the NAP process
Scaling up coastal adaptation in Maldives through the NAP processScaling up coastal adaptation in Maldives through the NAP process
Scaling up coastal adaptation in Maldives through the NAP processNAP Global Network
 
Kolkata Call Girls Halisahar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Girl ...
Kolkata Call Girls Halisahar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Girl ...Kolkata Call Girls Halisahar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Girl ...
Kolkata Call Girls Halisahar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Girl ...Namrata Singh
 
Vivek @ Cheap Call Girls In Kamla Nagar | Book 8448380779 Extreme Call Girls ...
Vivek @ Cheap Call Girls In Kamla Nagar | Book 8448380779 Extreme Call Girls ...Vivek @ Cheap Call Girls In Kamla Nagar | Book 8448380779 Extreme Call Girls ...
Vivek @ Cheap Call Girls In Kamla Nagar | Book 8448380779 Extreme Call Girls ...Delhi Call girls
 
Coastal Protection Measures in Hulhumale'
Coastal Protection Measures in Hulhumale'Coastal Protection Measures in Hulhumale'
Coastal Protection Measures in Hulhumale'NAP Global Network
 
Cara Gugurkan Pembuahan Secara Alami Dan Cepat ABORSI KANDUNGAN 087776558899
Cara Gugurkan Pembuahan Secara Alami Dan Cepat ABORSI KANDUNGAN 087776558899Cara Gugurkan Pembuahan Secara Alami Dan Cepat ABORSI KANDUNGAN 087776558899
Cara Gugurkan Pembuahan Secara Alami Dan Cepat ABORSI KANDUNGAN 087776558899Cara Menggugurkan Kandungan 087776558899
 
Delivery in 20 Mins Call Girls Malappuram { 9332606886 } VVIP NISHA Call Girl...
Delivery in 20 Mins Call Girls Malappuram { 9332606886 } VVIP NISHA Call Girl...Delivery in 20 Mins Call Girls Malappuram { 9332606886 } VVIP NISHA Call Girl...
Delivery in 20 Mins Call Girls Malappuram { 9332606886 } VVIP NISHA Call Girl...kumargunjan9515
 
74th Amendment of India PPT by Piyush(IC).pptx
74th Amendment of India PPT by Piyush(IC).pptx74th Amendment of India PPT by Piyush(IC).pptx
74th Amendment of India PPT by Piyush(IC).pptxpiyushsinghrajput913
 
Unique Value Prop slide deck________.pdf
Unique Value Prop slide deck________.pdfUnique Value Prop slide deck________.pdf
Unique Value Prop slide deck________.pdfScottMeyers35
 
The NAP process & South-South peer learning
The NAP process & South-South peer learningThe NAP process & South-South peer learning
The NAP process & South-South peer learningNAP Global Network
 
Pakistani Call girls in Sharjah 0505086370 Sharjah Call girls
Pakistani Call girls in Sharjah 0505086370 Sharjah Call girlsPakistani Call girls in Sharjah 0505086370 Sharjah Call girls
Pakistani Call girls in Sharjah 0505086370 Sharjah Call girlsMonica Sydney
 

Último (20)

Financing strategies for adaptation. Presentation for CANCC
Financing strategies for adaptation. Presentation for CANCCFinancing strategies for adaptation. Presentation for CANCC
Financing strategies for adaptation. Presentation for CANCC
 
Vasai Call Girls In 07506202331, Nalasopara Call Girls In Mumbai
Vasai Call Girls In 07506202331, Nalasopara Call Girls In MumbaiVasai Call Girls In 07506202331, Nalasopara Call Girls In Mumbai
Vasai Call Girls In 07506202331, Nalasopara Call Girls In Mumbai
 
Cheap Call Girls In Hyderabad Phone No 📞 9352988975 📞 Elite Escort Service Av...
Cheap Call Girls In Hyderabad Phone No 📞 9352988975 📞 Elite Escort Service Av...Cheap Call Girls In Hyderabad Phone No 📞 9352988975 📞 Elite Escort Service Av...
Cheap Call Girls In Hyderabad Phone No 📞 9352988975 📞 Elite Escort Service Av...
 
Honasa Consumer Limited Impact Report 2024.pdf
Honasa Consumer Limited Impact Report 2024.pdfHonasa Consumer Limited Impact Report 2024.pdf
Honasa Consumer Limited Impact Report 2024.pdf
 
An Atoll Futures Research Institute? Presentation for CANCC
An Atoll Futures Research Institute? Presentation for CANCCAn Atoll Futures Research Institute? Presentation for CANCC
An Atoll Futures Research Institute? Presentation for CANCC
 
Dating Call Girls inBaloda Bazar Bhatapara 9332606886Call Girls Advance Cash...
Dating Call Girls inBaloda Bazar Bhatapara  9332606886Call Girls Advance Cash...Dating Call Girls inBaloda Bazar Bhatapara  9332606886Call Girls Advance Cash...
Dating Call Girls inBaloda Bazar Bhatapara 9332606886Call Girls Advance Cash...
 
Contributi dei parlamentari del PD - Contributi L. 3/2019
Contributi dei parlamentari del PD - Contributi L. 3/2019Contributi dei parlamentari del PD - Contributi L. 3/2019
Contributi dei parlamentari del PD - Contributi L. 3/2019
 
Top profile Call Girls In Haldia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Haldia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Haldia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Haldia [ 7014168258 ] Call Me For Genuine Models We...
 
9867746289 Independent Call Girls in Mumbai Airport 24/7 - Mumbai Escorts
9867746289 Independent Call Girls in Mumbai Airport 24/7 - Mumbai Escorts9867746289 Independent Call Girls in Mumbai Airport 24/7 - Mumbai Escorts
9867746289 Independent Call Girls in Mumbai Airport 24/7 - Mumbai Escorts
 
Scaling up coastal adaptation in Maldives through the NAP process
Scaling up coastal adaptation in Maldives through the NAP processScaling up coastal adaptation in Maldives through the NAP process
Scaling up coastal adaptation in Maldives through the NAP process
 
Kolkata Call Girls Halisahar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Girl ...
Kolkata Call Girls Halisahar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Girl ...Kolkata Call Girls Halisahar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Girl ...
Kolkata Call Girls Halisahar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Girl ...
 
Vivek @ Cheap Call Girls In Kamla Nagar | Book 8448380779 Extreme Call Girls ...
Vivek @ Cheap Call Girls In Kamla Nagar | Book 8448380779 Extreme Call Girls ...Vivek @ Cheap Call Girls In Kamla Nagar | Book 8448380779 Extreme Call Girls ...
Vivek @ Cheap Call Girls In Kamla Nagar | Book 8448380779 Extreme Call Girls ...
 
Coastal Protection Measures in Hulhumale'
Coastal Protection Measures in Hulhumale'Coastal Protection Measures in Hulhumale'
Coastal Protection Measures in Hulhumale'
 
Cara Gugurkan Pembuahan Secara Alami Dan Cepat ABORSI KANDUNGAN 087776558899
Cara Gugurkan Pembuahan Secara Alami Dan Cepat ABORSI KANDUNGAN 087776558899Cara Gugurkan Pembuahan Secara Alami Dan Cepat ABORSI KANDUNGAN 087776558899
Cara Gugurkan Pembuahan Secara Alami Dan Cepat ABORSI KANDUNGAN 087776558899
 
Panchayath circular KLC -Panchayath raj act s 169, 218
Panchayath circular KLC -Panchayath raj act s 169, 218Panchayath circular KLC -Panchayath raj act s 169, 218
Panchayath circular KLC -Panchayath raj act s 169, 218
 
Delivery in 20 Mins Call Girls Malappuram { 9332606886 } VVIP NISHA Call Girl...
Delivery in 20 Mins Call Girls Malappuram { 9332606886 } VVIP NISHA Call Girl...Delivery in 20 Mins Call Girls Malappuram { 9332606886 } VVIP NISHA Call Girl...
Delivery in 20 Mins Call Girls Malappuram { 9332606886 } VVIP NISHA Call Girl...
 
74th Amendment of India PPT by Piyush(IC).pptx
74th Amendment of India PPT by Piyush(IC).pptx74th Amendment of India PPT by Piyush(IC).pptx
74th Amendment of India PPT by Piyush(IC).pptx
 
Unique Value Prop slide deck________.pdf
Unique Value Prop slide deck________.pdfUnique Value Prop slide deck________.pdf
Unique Value Prop slide deck________.pdf
 
The NAP process & South-South peer learning
The NAP process & South-South peer learningThe NAP process & South-South peer learning
The NAP process & South-South peer learning
 
Pakistani Call girls in Sharjah 0505086370 Sharjah Call girls
Pakistani Call girls in Sharjah 0505086370 Sharjah Call girlsPakistani Call girls in Sharjah 0505086370 Sharjah Call girls
Pakistani Call girls in Sharjah 0505086370 Sharjah Call girls
 

Difference-in-Difference Methods

  • 1. Difference-in-Difference Methods Day 2, Lecture 1 By Ragui Assaad Training on Applied Micro-Econometrics and Public Policy Evaluation July 25-27, 2016 Economic Research Forum
  • 2. Type I Methods Identification Assumptions “conditional exogeneity of placement” or “conditional exogeneity of placement to changes in outcomes” • “Conditional exogeneity of placement” was discussed in the context of regular regression and propensity score matching and weighting models. • It simply means that selection into treatment is assumed not to depends on any unobservables that affect outcomes • “conditional exogeneity of placement to changes in outcomes” is a much weaker assumption. • Here we distinguish between two kinds of unobservables, time invariant unobservables and time varying unobservables. • Under this assumption, selection can depend on time invariant unobservables, but is assumed not to depend on time-varying unobservables
  • 3. First Difference and Difference-in Difference Approaches • Under the stronger “conditional exogeneity of placement”, all we needed to do is compare outcomes for a treatment and control group at one point in time controlling for observables X – This is called a first difference approach (see D(X) estimator) • Under the weaker “exogeneity of placement to changes in outcomes” we need to compare the difference from before and after the program for a treatment group to the same difference for a control group. – This is called difference-in-difference or second difference approach
  • 5. The Difference-in-Difference Estimator DD(X ) = E(Y1 T -Y0 T | X ,T1 =1)- E(Y1 C -Y0 C | X,T1 = 0) If identifying assumption is met, then DD(X) = E(G1 | X ,T1 =1) = ATT(X ) If the counterfactual expectations are not expected to change over time, then the term on the right is zero E(Y1 C -Y0 C | X,T1 =1) = 0 Under such an assumption, the DiD estimator reduces to the Before and After (BA) estimator on the treated group, making measurement on a comparison group unnecessary BA(X ) = E(Y1 T -Y0 T | X,T1 =1) Such an assumption is unlikely to hold in practice.. Gives
  • 6. Data Structures for DiD Estimation When we have multiple observations on the same units, we effectively have panel data • Panel data can come in a number of different shapes • Let’s talk about shapes with a person-time period structure (say, before and after) • “Long” data: an individual shows up twice, once in time period 0 and once in time period 1. An observation is an individual in a time period • “Wide” data: an observation is a person, and there are different variables for each time period
  • 7. Notation for data shapes (in STATA) • i is a unique ‘logical observation’ (like a person, who may then be observed over time) • j is a ‘sub-observation’ (like a time period—people are observed in time periods) • x_ij are variables that can change over i and j (people and time), like employment status • Some variables are ‘time-varying,’ and can change over time (i.e. income or employment status) • Some variables are ‘time invariant’ and cannot change over time (i.e. sex) • Data entry errors or other issues may make time invariant variables time-varying in actual data 7
  • 8. Long Data: An Example • An observation is a person (id=i) in a year(=j) • A person has multiple observations (multiple years) • inc (income) is time varying (x_ij) • Sex is time invariant 8
  • 9. Wide data: an example • An observation is a person (id=i) • A person has only one observation • There is still only one variable for sex (time invariant) • Now there are three variables for income • One for each year • There is no more year variable—it is a suffix on income 9
  • 10. Reshaping Data from Long to Wide and vice versa • You can use the “reshape” command in STATA to reshape data from long to wide and vice versa. • However before you do that, you need to know what form your data is in. • The “duplicate report” command on the unique individual identifier can allow you to do that.
  • 11. Estimating the DD Estimator in Practice: The Regression Approach • Shape the data up as “long”, with each observation being an individual i time period t • Run a regression of the outcome (Yit) on the treatment status (Ti1), a time dummy (t) (t=0, before, t=1, after) (Ti0 = 0, by definition) Yit =a +bTi1 t +gTi1 +dt +eit Calculate the following expectations: E(Yi0 |Ti1 = 0) =a E(Yi1 |Ti1 = 0) =a +d E(Yi0 |Ti1 =1) =a +g Note: We can ignore the X’s since this regression does not et have covariates. I also dropped the T and C superscripts since we only observed treatment for treated observations and non-treatment for comparison observations E(Yi1 |Ti1 =1) =a +b +g +d
  • 12. SD1 = E(Yi1 |Ti1 =1)- E(Yi1 |Ti1 = 0) = (a +b +g +d)-(a +d) = b +g SD0 = E(Yi0 |Ti1 =1)- E(Yi0 |Ti1 = 0) = (a +g)-(a) =g Estimating the DD Estimator in Practice: The Regression Approach The Single Difference Estimator after Treatment is given by: The Single Difference Estimator before Treatment is given by: You can think of this estimator as measuring the effect of selection – the difference between treatment and comparisons observations before any treatment is applied.
  • 13. • The Difference-in-Difference Estimator or the Double Difference estimators is given by: Estimating the DD Estimator in Practice: The Regression Approach DD = SD1 -SD0 = b Thus, under the weaker Type I identification assumptions, the effect of the treatment on the treated (ATT) is given by the regression coefficient β, which is the coefficient of the interaction term between the treatment dummy and the time dummy. SD1 is an unbiased measured of ATT if and only if ϒ=0, which means there is no selection.
  • 14. Introducing Covariates • It is easy to introduce covariates in DiD estimation Yit =a +bTi1 t +gTi1 +dt + qj Xitj j å +eit All the expectations can now be written given X. ATT is still equal to β. To obtain heterogeneous effects, all you ned to do is interact β & ϒ with the Xs.
  • 15. An Example: Wahba and Assaad (2014). Flexible Labor Regulations and Informality in Egypt • Studies the effects of the 2003/04 labor law on informality of employment in Egypt • Research Design • Two observation periods • 1998-2002 pre-intervention P=0 (P=post) • 2004-2008 post-intervention P=1 • Two groups of private non-agricultural wage workers who would be differentially affected are observed over a 5-yer period, either pre- or post-intervention • Workers initially non-contracted working for formal/semiformal enterprises (F) (T=1) • Workers initially non-contracted working in informal enterprises (I) (T=0) • Contention is that second group of workers unlikely to be affected by new labor law
  • 16. Wahba and Assaad (2014) • Estimation Equation Where: Cit is a dummy indicating the contract status of the worker Tit is a dummy indicating belonging to F (versus i) Pit is a dummy indicating post Xit is a vector of observables including individual characteristics, such as gender, education and region, GDP growth rates, annual unemployment rates, a time trend variable capturing the time since the job started We posit that δ captures he effect of the law. Cit =a +bTit +g Pit +dTit Pit +jXit +eit
  • 17. Difference-in-Difference Estimates of the Determinants of Acquiring a Job Contract α α+β β α+ϒ α+β+ϒ+δ β+δ δ
  • 18. Falsification Tests • The identifying assumption for DiD means that the trend in the outcome variable between treated and control observations (conditional on observables) should not be different absent treatment. • To check on this, one can check whether the trend is the same in the pre-treatment period. • To do this, you will need two points in time prior to treatment begins. • The same regression is carried out for that pre-treatment period. The coefficient β needs to be statistically insignificant in this case to pass the falsification test.
  • 19. Cross-Sectional Difference-in- Difference • DiD estimators do not have to involve measurements across time. • Can be done across groups of individuals, with one group not expected to be affected by treatment. • E.g. • Target and non-target villages for micro-credit programs • Participating and non-participating households • Non-targeted villages are not expected to be affected, so difference between participating and non-participating HH in such villages could be a measure of selection into participation • DiD: difference between participants and non-participants in targeted villages, minus the same difference in non-targeted villages
  • 20. Difference-in-Difference and PSM • One can use DiD in the context of PSM as well • Matching is still done along pre-treatment characteristics ATT =(1/NT ) [(Y1 j T -Y0 j t ) j=1 NT å - wij iÎC å (Y1ij C -Y0ij C )] Using “wide” data, calculate Y1j - Y0j at the individual level and then carry out PSM on that outcome variable
  • 21. Wahba and Assaad (2014) PSM Robustness check: • Treatment: (as before) is belonging to a formal firm or informal firm at the beginning of the perio T=1 in formal firm T=0 in informal firm • Outcome: whether individual with no contract in 2002-2004 moved to a contract job in 2004-2008. Y=1 obtained contract Y=0 did not obtain contract • Falsification test • Do it again for period 1996-98 to 1998-2002
  • 22. Wahba and Assaad (2014) Coefficient (DiD) Bootstrapped Std Err Post Policy (2004-2008) 0.0330** 0.0174 Pre Policy (1998-2002) 0.0043 0.0145 Covariates used in matching: Gender, Age, Education, Region of Residence Conclusion: • The proportion who moved from no contract to a contracts in Formal Firms exceeds that of in Informal Firms by 3.3 percentage points • No such difference can be seen in the pre-policy period