Event-Study Plots: Basics - YouTube

Channel: unknown

[0]
hi i'm jorge perez perez from bangkok
[2]
mexico and welcome to our next video on
[5]
visualization identification and
[7]
estimation in the linear panel event
[9]
study design
[11]
on this video we're going to talk about
[13]
estimation and event study plots
[16]
on the first video of the series
[19]
jesse and chris introduced us to the
[21]
linear panel model which is the basis
[23]
behind the linear panel event study
[25]
design so let us first recap a bit about
[28]
the linear funnel model
[30]
we have an outcome of interest y i t
[33]
which we are regressing on unit fixed
[35]
effects time effects control variables
[38]
and on dynamic effects of the policy of
[40]
interest z
[42]
these dynamic effects can occur up to g
[45]
periods in the past and up to n periods
[47]
in the future
[49]
we also have an unobserved confounding
[51]
variable c
[52]
that may be related to the policy and
[54]
that will lead to identification and
[57]
estimation issues
[59]
we will postpone our discussion of these
[61]
issues to next videos and on this one
[64]
we'll focus on how to turn this linear
[66]
panel model into an estimating equation
[68]
that we can use
[70]
to build our event study plot
[73]
this is a typical event study plot as
[75]
you see in applied economics papers
[78]
on the x-axis we have event time
[81]
and this can be interpreted as time
[84]
relative to occurrence of the event or
[86]
to a change in the policy variable and
[89]
on the y-axis we have the coefficients
[92]
these coefficients are intended to
[93]
display the cumulative effects of the
[95]
policy variable of interest on the
[98]
outcome
[99]
the vertical bars around each one of the
[100]
coefficients are confidence intervals
[105]
so how do we turn our linear panel model
[107]
into an estimating equation that we can
[110]
use to build the event study plot
[112]
since we want to show cumulative effects
[114]
of the policy we're going to replace the
[117]
levels of the policy variable with first
[119]
differences of the policy variable so
[122]
this delta z i t is going to be z i t
[125]
minus z i t minus 1
[127]
and we're also going to include some
[129]
extra dynamics in the equation
[132]
we want to be able to have some over
[134]
identifying restrictions in this
[136]
estimating equation
[138]
because we want to be able to test if
[140]
the policy is having effects on the
[142]
outcome before it was supposed to have
[144]
effects or after the effects were
[147]
supposed to die off
[149]
so we're going to add some extra leads
[150]
and lags to the estimating equation
[154]
this is the resulting estimating
[156]
equation we have our outcome y i t and
[159]
we'll regress that on a sum of first
[162]
differences of the policy variables z i
[165]
at time t minus k interacted with
[167]
coefficients delta k and the sum goes
[171]
from minus g minus lg to m plus lm minus
[174]
one again to allow for those extra
[177]
dynamics we also have a couple of
[179]
components here that we'll call it the
[182]
endpoints
[183]
this is the right hand side endpoint and
[185]
is the coefficient delta n plus ln
[188]
interacted with the level of the policy
[190]
variable at time t minus m minus lm
[194]
and we also have an analogous term for
[196]
the left hand side coefficient here
[199]
we will refer to the index k as event
[201]
time and we will refer to the vector
[203]
delta as the event time path of the
[206]
outcome this vector delta is going to
[208]
collect these coefficients delta k plus
[210]
three coefficients on the endpoint terms
[215]
under staggered option that is when the
[217]
policy is binary each unit adopts the
[219]
policy at a different time and each unit
[222]
eventually adopts the policy these
[224]
variables in the estimating equation
[226]
have a natural interpretation
[229]
say that for each unit i
[231]
the policy starts at 0 and switches to 1
[234]
at time t star of i then delta z i t
[237]
minus k is going to be an indicator for
[240]
being k periods after the policy was
[243]
adopted in unit i so for example delta z
[247]
i t minus 3 is an indicator for being
[250]
three periods after the policy was
[252]
adopted in unit i the variable z i t
[255]
minus m minus l m is going to be an
[258]
indicator for being m plus l m or more
[261]
periods in the future after the policy
[264]
was adopted in unit i
[266]
and the policy
[268]
variable one minus z i t plus a g plus
[271]
rg is going to be an indicator for being
[275]
more than g plus lg periods in the past
[277]
before the policy was adopted in unit
[280]
i under a staggered option but also
[283]
outside of a staggered option and in the
[286]
general case where the policy variable
[288]
may be continuous
[290]
the coefficients delta k have an
[292]
interpretation as cumulative effects of
[294]
the policy so in a sense
[296]
what gives these coefficients their
[299]
interpretation as
[301]
event study coefficients is the
[303]
estimating equation
[305]
so the coefficient delta k is going to
[307]
be the sum from minus g to k of the b
[310]
time coefficients that came from our
[312]
linear panel model and it's going to be
[314]
the cumulative effects of the policy
[318]
k periods after the policy was adopted
[322]
with those components in hand we can go
[325]
back to our coefficient event time plane
[327]
and just plot the components
[329]
and we're going to call the combination
[332]
of event times and coefficients as the
[335]
event study plot
[337]
again the vertical bars around the
[339]
coefficients are confidence intervals
[342]
now let me turn to stata to give you an
[344]
example of how to build an event study
[347]
plot using the stata command xt event
[354]
so what i have here is an example data
[356]
set that has all of the components for
[359]
the linear panel event study we have an
[361]
outcome variable of interest y
[364]
a policy variable of interest z
[366]
units i
[368]
and time t
[371]
let me remind you that to install the
[374]
command x event you can just type ssc
[378]
install
[379]
xd event
[381]
now to estimate this event study you can
[385]
first declare the panel nature of your
[386]
data set which we do like with xt set id
[391]
now to estimate your event study you can
[393]
type xd event
[395]
the outcome variable of interest y
[397]
the policy variable of interest
[400]
in this case z
[402]
in a window around which you want to
[404]
estimate the event start
[409]
x event then estimates a regression with
[414]
unit fixed effects and time effects by
[416]
default and it estimates these
[418]
coefficients under line k
[420]
that are the delta k coefficients of
[422]
interest the coefficient of
[424]
underlying k equals minus one is missing
[427]
so these coefficients are normalized to
[429]
the effect of the policy at time minus
[431]
one
[433]
now to build an event study plot you can
[435]
just type xt event plot after estimating
[439]
and this gives you an event study plot
[442]
now when you see this plot you may
[444]
notice that there's a lot of extra
[446]
components relative to the plot we had
[448]
seen earlier this is because we are
[450]
suggesting additions to the event study
[453]
plot to make it more informative on the
[455]
next video of the series simon will tell
[458]
us about suggestions to improve
[461]
the event study plot and make it more
[463]
informative
[464]
thank you for watching and we hope this
[466]
video is useful for you in your research