'''Difference in differences''' ('''DID'''<ref>{{cite journal |last=Abadie |first=A. |year=2005 |title=Semiparametric difference-in-differences estimators |journal=[[Review of Economic Studies]] |volume=72 |issue=1 |pages=1–19 |doi=10.1111/0034-6527.00321 |citeseerx=10.1.1.470.1475 }}</ref> or '''DD'''<ref name=Bertrand>{{cite journal |last1=Bertrand |first1=M. |last2=Duflo |first2=E. |authorlink2author-link2=Esther Duflo |last3=Mullainathan |first3=S. |year=2004 |title=How Much Should We Trust Differences-in-Differences Estimates? |journal=[[Quarterly Journal of Economics]] |volume=119 |issue=1 |pages=249–275 |doi=10.1162/003355304772839588 |jstor= |s2cid=470667 |url=http://www.nber.org/papers/w8841.pdf }}</ref>) is a [[statistics|statistical technique]] used in [[econometrics]] and [[quantitative research]] in the social sciences that attempts to mimic an [[experiment|experimental research design]] using [[observational study|observational study data]], by studying the differential effect of a treatment on a 'treatment group' versus a '[[control group]]' in a [[natural experiment]].<ref>{{cite book |last1=Angrist |first1=J. D. |last2=Pischke |first2=J. S. |year=2008 |title=Mostly Harmless Econometrics: An Empiricist's Companion |publisher=Princeton University Press |___location= |isbn=978-0-691-12034-8 |pages=227–243 |url=https://books.google.com/books?id=ztXL21Xd8v8C&pg=PA227 }}</ref> It calculates the effect of a treatment (i.e., an explanatory variable or an [[independent variable]]) on an outcome (i.e., a response variable or [[dependent variable]]) by comparing the average change over time in the outcome variable for the treatment group, compared to the average change over time for the control group. Although it is intended to mitigate the effects of extraneous factors and [[selection bias]], depending on how the treatment group is chosen, this method may still be subject to certain biases (e.g., [[regression to the mean|mean regression]], [[Reverse causality bias|reverse causality]] and [[omitted variable bias]]).
In contrast to a [[time series|time-series estimate]] of the treatment effect on subjects (which analyzes differences over time) or a cross-section estimate of the treatment effect (which measures the difference between treatment and control groups), difference in differences uses [[panel data]] to measure the differences, between the treatment and control group, of the changes in the outcome variable that occur over time.
==Card and Krueger (1994) example==
Consider one of the most famous DID studies, the [[David Card|Card]] and [[Alan Krueger|Krueger]] article on [[minimum wage]] in [[New Jersey]], published in 1994.<ref>{{cite journal |first1=David |last1=Card |first2=Alan B. |last2=Krueger |year=1994 |title=Minimum Wages and Employment: A Case Study of the Fast-Food Industry in New Jersey and Pennsylvania |journal=[[American Economic Review]] |volume=84 |issue=4 |pages=772–793 |doi= |jstor=2118030 }}</ref> Card and Krueger compared [[Unemployment|employment]] in the [[fast food]] sector in New Jersey and in [[Pennsylvania]], in February 1992 and in November 1992, after New Jersey's minimum wage rose from $4.25 to $5.05 in April 1992. Observing a change in employment in New Jersey only, before and after the treatment, would fail to control for [[Omitted-variable bias|omitted variables]] such as weather and macroeconomic conditions of the region. By including Pennsylvania as a control in a difference-in-differences model, any bias caused by variables common to New Jersey and Pennsylvania is implicitly controlled for, even when these variables are unobserved. Assuming that New Jersey and Pennsylvania have parallel trends over time, Pennsylvania's change in employment can be interpreted as the change New Jersey would have experienced, had they not increased the minimum wage, and vice versa. The evidence suggested that the increased minimum wage did not induce a decrease in employment in New Jersey, contrary to what simplistic economic theory would suggest. The table below shows Card & Krueger's estimates of the treatment effect on employment, measured as [[Full-time equivalent|FTEs (or full-time equivalents)]]. Card and Krueger estimate that the $0.80 minimum wage increase in New Jersey led to a 2.75 FTE increase in employment.
{| class="wikitable"
==Further reading==
*{{cite book |last1=Angrist |first1=J. D. |last2=Pischke |first2=J. S. |year=2008 |title=Mostly Harmless Econometrics: An Empiricist's Companion |publisher=Princeton University Press |___location= |isbn=978-0-691-12034-8 |pages=227–243 |url=https://books.google.com/books?id=ztXL21Xd8v8C&pg=PA227 }}
*{{cite book | first1 = Arthur C. |last1=Cameron |first2=Pravin K. |last2=Trivedi |year=2005 |title=Microeconometrics: Methods and Applications |publisher=Cambridge university press |isbn=9780521848053 |doi=10.1017/CBO9780511811241 |pages=768–772 |url=https://api.semanticscholar.org/CorpusID:120313863 }}
*{{cite journal |last1=Imbens |first1=Guido W. |first2=Jeffrey M. |last2=Wooldridge |year=2009 |title=Recent Developments in the Econometrics of Program Evaluation |journal=[[Journal of Economic Literature]] |volume=47 |issue=1 |pages=5–86 |doi=10.1257/jel.47.1.5 |url=http://nrs.harvard.edu/urn-3:HUL.InstRepos:3043416 }}
|