Such an intuitive way to explain DiD! Spectacular slides & awesome flow
@KP-pj4bq3 жыл бұрын
Thanks for this amazing explanation, I've already watched some videos here today but the more I watched, the more confused I became - Now I finally understand what DiD is about - need it for my thesis :) Thank you so much!!!
@hunterisaias58533 жыл бұрын
Sorry to be off topic but does someone know of a tool to get back into an Instagram account? I stupidly forgot my login password. I would love any tips you can offer me!
@arunbhat78904 ай бұрын
really good explaination
@chiaracappellini15252 жыл бұрын
Such a clear explanation, thanks!
@janetmugo59563 жыл бұрын
This is a great explanation, thanks.
@oaholla38553 жыл бұрын
Thanks alot for this intuitive explanation of DiD. I am shocked there are only 39 likes .
@edwardsmith7032 жыл бұрын
Great explanation
@johannesh17414 жыл бұрын
Super interesting! Thanks a lot for the DiD explanation video with the highest quality on KZbin - very helpful :)
@NickHuntingtonKlein4 жыл бұрын
Glad you like it!
@samerfahed72364 жыл бұрын
Thank you for the video and a good explanation of the theory. I have a question, could we use DiD to compare treatment in the CPI (for example) between two countries? Or should the groups be (Treated and Control) always in the same country?
@NickHuntingtonKlein4 жыл бұрын
You can certainly use DID across countries. There's nothing *statistically* wrong with that. The key is whether you still believe the parallel trends assumption. The bigger you go and the more different your treatment and control groups are, the more "other stuff" is going on at the same time as your treatment, making it less plausible that parallel trends holds. But if you have good reason to believe it *does* hold theoretically, then there's nothing wrong with cross-country.
@danhan70284 жыл бұрын
How common is the use of R/tidy for a career involving econometrics?
@NickHuntingtonKlein4 жыл бұрын
Depends on where you're going into. In academia and policy research centers centers it's Stata/R (although that might tilt R/Stata soon). In tech it's Python/R. It makes a showing in finance too but I'm not sure how prominent.
@JM-fr9bc3 жыл бұрын
High Nick, how would the model look if you want to introduce a bunch of control variables with panel data with more than 2 periods?
@NickHuntingtonKlein3 жыл бұрын
Panel data with more than 2 periods is simple, just add fixed effects for time period (technically this is what hte "After" control is anyway). Control variables are a bit trickier. You CAN just add them to the regression equation as normal, but they don't always work as you expect them to. See Callaway and Sant'Anna (2020) for how to include covariates when treatment is staggered (some groups get treated earlier than others), or more generally see this paper arxiv.org/abs/1911.12185
@NickHuntingtonKlein3 жыл бұрын
Or this explainer causalinf.substack.com/p/a-tale-of-time-varying-covariates
@JM-fr9bc3 жыл бұрын
@@NickHuntingtonKlein Nick, thanks so much for your response and the resources. So with more than two periods I wouldn't need additional time dummies because as you mentioned in the video, 'After' is in fact the fixed effect for time? Wooldridge in some cases inserts a fixed effect alpha-sub-i (and removes the interaction term and group dummy, confusing the heck out of me), but than does that mean, as in your video, that the dummy 'Treated' is the fixed effect for each of the two groups? Lastly, what is staggered adoption design and what are its benefits? They seem to be linked with multiple time periods as in the Callaway paper (trying to wrap my mind around it). Thanks so much!
@NickHuntingtonKlein3 жыл бұрын
@@JM-fr9bc you want the time dummies in place of "after" since the after dummy only accounts for before/after differences but the time dummies do it all, improving the estimate. Alpha-sub-i in Wooldridge IS the group fixed effect. That's a common way of writing a FE equation, as it shows you're letting the intercept vary over each individual. Same thing for alpha-sub-t and time dummies. And I'm guessing he replaced the interaction with "Treated" or something like that which indicates "treated group in the post treatment period" which is exactly what the interaction term gives you Staggered rollout is when you have multiple treated groups that begin their treatment at different times. When this happens, two way fixed effects (like you're doing) no longer properly identifies the DID effect
@JM-fr9bc3 жыл бұрын
@@NickHuntingtonKlein Thanks Nick, I'm slowly but surely getting there. So dif-dif can be ran with just two periods (before/after), but then with panel data with multiple years it's still a dif-dif because if replace the "after" with let's say 20 "time" dummies for 21 years of observations, each year gets subtracted by the previous year, and there by eliminating the single alpha-sub-i? If Wooldridge' general model for two periods is yit = a1 + d1 + d2d2t + d3d3t + b1xit1 + … + bkxitk + ai + uit. and for more then 3 periods is ∆yit = a0 + a3(d3t) + a4(d4t) + … + aT(dTt) + bk(∆xitk) + ∆uit, t=2,3,4,...T then can you show me which term is the "after" or "group"? or even yet where the heck the differencing takes place. Thanks!!
@ivandn38763 жыл бұрын
I think your videos are pretty straightforward. Thanks for sharing all your knowledge in Econometrics. I am dealing with homework, and I am wondering if there is any chance to contact you to get some help. Thank you.
@NickHuntingtonKlein3 жыл бұрын
Hi Ivan, glad you like the videos! I'm afraid I don't have time to provide one on one help though.
@togoyaya1783 жыл бұрын
Thank you so much Nick for this interesting explanation. Is your dependent variable a binary variable or not? I want to run DID using a binary variable (positive or negative for malaria test), some suggest me to use poisson regression for the DID. What do you think about that?
@NickHuntingtonKlein3 жыл бұрын
Commonly did with a binary dependent variable uses OLS anyway. With a "saturated" model like did where the predictors are all binary, the linear probability model downsides are much reduced. That said, there are also methods specifically designed for nonlinear did. I believe Athey and Imbens have a paper on it
@NickHuntingtonKlein3 жыл бұрын
In any case, if the outcome is positive/negative you wouldn't be using poisson anyway, that's for count variables not binary
@togoyaya1783 жыл бұрын
@@NickHuntingtonKlein Thank you so much for your response. Of course, it is converted into 0/1 (count variable) for the poisson regression. My issue is about the offset variable. I don't have any offset variable, can rue the poisson régression without offset?
@NickHuntingtonKlein3 жыл бұрын
@@togoyaya178 I mean poisson is designed for count variables. So if it was "how many times do you get sick" the poisson would make sense. But for "did you get sick of not" it doesn't, you'd want probit or logit instead (or for did, OLS may be fine). The offset is used when you want to account for the length of time you're allowing the variable to count up
@togoyaya1783 жыл бұрын
@@NickHuntingtonKlein Got it, thank you so much for those informations. I will look at some articles on probit and logit.
@cattyoctavia41222 жыл бұрын
Hi sir, may i ask what is the difference between event study and difference in differences? Thankyou
@NickHuntingtonKlein2 жыл бұрын
"event study" refers to a lot of different things in different fields. In some fields it's a before/after comparison without a control group (whereas DID has a control group). In other fields it's a variant of DID where you allow the effect to vary over time
@jackcela97032 жыл бұрын
bro just made my thesis paper 10x easier to write.
@marcopozzan4453 жыл бұрын
Hello Nick! I am currently writing my master thesis on the influence of ESG on stock returns during the pandemic crisis. I am using a dif in dif for studying the causality between ESG score (treatment) and the current pandemic (time dummy). Is ESG as a dummy (one if the company qualifies in the top quartile, ESG score is last measured in 2018) qualified? I am worrying about self-selection bias. Can DiD fixed effects be a solution? Thank you in advance!
@NickHuntingtonKlein3 жыл бұрын
This doesn't sound like dif in dif at all. For DID you need a treated group and a control group. Everyone is affected by the pandemic so there's no control group here. This sounds instead like a regression with an interaction term.
@TateVanPatten Жыл бұрын
why can't you just use time series techniques to create a difference in forecasted difference when trends are not parallel?
@NickHuntingtonKlein Жыл бұрын
Some people do this. It works in some limited circumstances. Keep in mind parallel trends is about counterfactual trends so you'd need a way to forecast the counterfactual. I do discuss the use of trend adjustment in did in my did chapter on theeffectbook.net