Diff- inDiff 2

9
Diff-inDiff 2

description

Diff- inDiff 2. 1. Are exports from i to j, the same as imports in i from j? Should they be?. . gen test= xij-mji (14 missing values generated) . sum test, detail test ------------------------------------------------------------- - PowerPoint PPT Presentation

Transcript of Diff- inDiff 2

Page 1: Diff- inDiff  2

Diff-inDiff 2

Page 2: Diff- inDiff  2

1. Are exports from i to j, the same as imports in i from j? Should they be?. gen test=xij-mji(14 missing values generated). sum test, detail

test------------------------------------------------------------- Percentiles Smallest 1% -2058.9 -8174.801 5% -565.3003 -815910% -226.45 -7875.398 Obs 1015025% -45.79004 -7844.6 Sum of Wgt. 10150

50% -4.5 Mean 13.0583 Largest Std. Dev. 799.200975% 4.95 10998.5790% 149.63 11075.08 Variance 63872295% 521.5001 11454 Skewness 4.14746999% 3113 15071.91 Kurtosis 68.47176

Page 3: Diff- inDiff  2

2. If you estimate the gravity equation, what part of the variation in bilateral trade is explained by this simple regression?

. reg ltrade lrgdp1 lrgdp2 ldist1, cluster(pairid)

Linear regression Number of obs = 10138 F( 3, 230) = 775.09 Prob > F = 0.0000 R-squared = 0.8840 Root MSE = .72859

(Std. Err. adjusted for 231 clusters in pairid)------------------------------------------------------------------------------ | Robust ltrade | Coef. Std. Err. t P>|t| [95% Conf. Interval]-------------+---------------------------------------------------------------- lrgdp1 | .7751556 .0272591 28.44 0.000 .7214461 .8288651 lrgdp2 | .8136234 .0266388 30.54 0.000 .7611361 .8661107 ldist1 | -.7900897 .03726 -21.20 0.000 -.8635043 -.7166752 _cons | -4.046405 .3929865 -10.30 0.000 -4.820719 -3.272091------------------------------------------------------------------------------

. end of do-file

Page 4: Diff- inDiff  2

Difference in Difference Estimate of the effect of the Euro on Trade: Basic Specification• Who are our treatment group?• Who are our control group?• When is the Treatment Period and When is the Post Period?• Why are we leaving in the controls? (two reasons)• What is the identification assumption?• What is our parameter of interest?

Page 5: Diff- inDiff  2

DiD Estimate

• . reg ltrade euro after euro_after lrgdp1 lrgdp2 ldist1, cluster(pairid)

• Linear regression Number of obs = 10138• F( 6, 230) = 566.84• Prob > F = 0.0000• R-squared = 0.8848• Root MSE = .72625

• (Std. Err. adjusted for 231 clusters in pairid)• ------------------------------------------------------------------------------• | Robust• ltrade | Coef. Std. Err. t P>|t| [95% Conf. Interval]• -------------+----------------------------------------------------------------• euro | -.0712745 .0953126 -0.75 0.455 -.259072 .116523• after | -.1566864 .0327201 -4.79 0.000 -.2211558 -.092217• euro_after | .4343633 .0594883 7.30 0.000 .3171517 .5515749• lrgdp1 | .7774377 .0276147 28.15 0.000 .7230276 .8318479• lrgdp2 | .8145928 .0269346 30.24 0.000 .7615226 .867663• ldist1 | -.7935692 .0395425 -20.07 0.000 -.8714812 -.7156573• _cons | -4.020708 .4189466 -9.60 0.000 -4.846172 -3.195245• ------------------------------------------------------------------------------

• . • end of do-file

Page 6: Diff- inDiff  2

What does our DiD estimator look like graphically?

Page 7: Diff- inDiff  2

• How do the results change when we add controls?How about when we also add time FE?

Why do we drop the after dummy?How about when we also include pair FE?

Why do we now exclude the Euro Dummy? Language, and border dummies etc?What do we learn from this? Does this help with the identification assumption?

  (1) (2) (3)

VARIABLES No FE Time FE Time & Pair FE       euro 0.0254 0.00619

(0.0763) (0.0765)after -0.144***

(0.0326)

euro_after 0.358*** 0.309*** 0.280***(0.0563) (0.0531) (0.0508)

lrgdp1 0.791*** 0.835*** 0.805***(0.0268) (0.0289) (0.0871)

lrgdp2 0.821*** 0.855*** 0.879***(0.0239) (0.0252) (0.0736)

ldist1 -0.833*** -0.860***(0.0569) (0.0559)

language 0.744*** 0.733***(0.125) (0.124)

border 0.0892 0.00517(0.117) (0.117)

island 0.268** 0.354***(0.118) (0.111)

landl -0.456*** -0.417***(0.0864) (0.0860)

eu15 0.147** 0.254*** 0.344***(0.0671) (0.0698) (0.0496)

canus 0.835*** 0.976*** 0.492***(0.135) (0.131) (0.0408)

cer 1.398*** 1.430*** 0.390***(0.233) (0.220) (0.0371)

efta 0.667*** 0.692*** 0.253***(0.0872) (0.0824) (0.0607)

Observations 10,138 10,138 10,138

R-squared 0.911 0.918 0.977

Page 8: Diff- inDiff  2

Estimating Year-by-Year interactions?

• We must exclude one of the year interactions. Why?

• Suppose we excluded 1960, the first year. What do the coefficients on each years interaction (Bt) tell us?

• If we are to believe the parallel trends assumption, what would we like to see?

Page 9: Diff- inDiff  2

What do we see?

.51

1.5

1960 1970 1980 1990 2000

Diff

ere

nce

in t

rad

e

Difference in Trade between Treatment and Control