Пікірлер
@WajdiFIT
@WajdiFIT 23 минут бұрын
You are amazing! Thank you
@saurabhmahajan4459
@saurabhmahajan4459 3 күн бұрын
Will learning R and Python get me a job in economics
@NickHuntingtonKlein
@NickHuntingtonKlein 3 күн бұрын
@@saurabhmahajan4459 not by itself, no, but having some programming knowledge will be expected in a lot of Economics jobs
@pedrogustavo6823
@pedrogustavo6823 13 күн бұрын
Something that is not clear to me is from the example of drugs and income, if I am not interested on those variables (the effect that is trying to be meassured is how wine affects lifespan), how do I know I need to keep adding controls, and controls for controls, etc.?
@NickHuntingtonKlein
@NickHuntingtonKlein 13 күн бұрын
@@pedrogustavo6823 see the chapter, which covers this. But basically, it's the exact same process, just with different start and end points.
@pedrogustavo6823
@pedrogustavo6823 13 күн бұрын
I have a question with the good paths that are left open. If we control for health and income, leaving Wine, Drugs and Lifespan, is it a good idea to 1st capture the whole effect (not controlling for drugs) and then maybe controlling afterwards, to see the direct effect of Wine in Lifestyle through other things besides drugs?
@NickHuntingtonKlein
@NickHuntingtonKlein 13 күн бұрын
This can work, but only in very specific circumstances. If, for example, there's actually another variable Z here that causes both drugs and lifespan, then controlling for drugs opens up another back door via collider bias (wine -> drugs <- Z -> lifespan) and you aren't getting that direct effect you want.
@pedrogustavo6823
@pedrogustavo6823 13 күн бұрын
@@NickHuntingtonKlein That makes a lot of sense, thanks a lot! After reading this reply, having read the chapter and watching the episodes till #20 so far, I con affirm that colliders will be my worst enemy.
@RightAIopen
@RightAIopen 21 күн бұрын
Your videos should be given to everyone in high school so we would start having a better society
@RightAIopen
@RightAIopen 21 күн бұрын
Best professor EVER!
@cmahones03
@cmahones03 24 күн бұрын
Thank you for this! Appreciate your clarity and brevity
@nushinqobil8670
@nushinqobil8670 25 күн бұрын
Hello sir, do you offer private tutoring ?
@NickHuntingtonKlein
@NickHuntingtonKlein 25 күн бұрын
@@nushinqobil8670 I'm afraid I don't, sorry
@CaidynC
@CaidynC 27 күн бұрын
I want to say whole heartedly where have you been my entire semester? Seriously you follow the exact curriculum as my professor too and have the same mannerisms which is kinda funny. You are amazing
@philippederome3883
@philippederome3883 Ай бұрын
I love you.
@pedrogustavo6823
@pedrogustavo6823 Ай бұрын
Thank you for the videos! I come from an education on econometrics based on Statistical Inference, focused on the process and the tests, but not so much on the ideas of the question. Reading the book has been a blast, although some concepts (Front Door, Back Door) are still kind of new and I havent grasped them yet. But with the videos, I am sure it will all click faster! Thanks again for the book and your time!
@timt6486
@timt6486 Ай бұрын
hey nice video,but you speak fast as if you want to participate in a double time contest
@luanfigueiredo7283
@luanfigueiredo7283 Ай бұрын
thank you so much!!!!
@LilyLilay
@LilyLilay Ай бұрын
I'm loving this series. It's so helpful, thank you.
@wangguan1548
@wangguan1548 Ай бұрын
Sorry, another question, does event study to be tracked on the same unit? Like in a panel survey. Can repeated cross sectional data be used for event study? thanks
@wangguan1548
@wangguan1548 Ай бұрын
Hey, professor, do we need to have any comparison group (to treated) for event study? ( like in a DID study)
@NickHuntingtonKlein
@NickHuntingtonKlein Ай бұрын
@@wangguan1548 as I use the term, event studies are for cases where you are not using a comparison group. So you don't need a comparison group for this, although conversely this approach is only appropriate when you don't need one.
@wangguan1548
@wangguan1548 Ай бұрын
@@NickHuntingtonKlein Sorry, I may misunderstand, is it (event study) similar to interrupted time series, if without the comparison groups in this context?
@NickHuntingtonKlein
@NickHuntingtonKlein Ай бұрын
@@wangguan1548 correct. I recommend checking out the event study chapter in the book. www.theeffectbook.net/ch-EventStudies.html
@wangguan1548
@wangguan1548 Ай бұрын
@@NickHuntingtonKlein Thanks, very clear
@wangguan1548
@wangguan1548 Ай бұрын
Another question, in a repeat cross sectional data, can I use RDD design ?
@NickHuntingtonKlein
@NickHuntingtonKlein Ай бұрын
@@wangguan1548 yes, no reason why not. RDD often is used with cross sectional data.
@wangguan1548
@wangguan1548 Ай бұрын
@@NickHuntingtonKlein Thanks for confirming
@wangguan1548
@wangguan1548 Ай бұрын
Can I have time (i.e., year) as a running variable, professor?
@NickHuntingtonKlein
@NickHuntingtonKlein Ай бұрын
@@wangguan1548 this works mathematically and is called an Interrupted Time Series. However it is usually less plausible that time is a good running variable that satisfies all the assumptions you need, so this is usually considered lower quality than other RDD studies.
@wangguan1548
@wangguan1548 Ай бұрын
@@NickHuntingtonKlein Thanks, so ITS could be considered as an exceptional case for event study
@SigneMacholm
@SigneMacholm Ай бұрын
This explanation was super helpful to understand how to approach front door and back door adjustment. THANK YOU!
@mohakraitani6228
@mohakraitani6228 Ай бұрын
I have a panel data where I have the staggered difference in difference treatment however I want to understand how do I apply PSM in this case given that treatment is at different time for different individuals. Do i actually need to do PSM or CSDID package will automatically do it .
@NickHuntingtonKlein
@NickHuntingtonKlein Ай бұрын
@@mohakraitani6228 csdid has a matching step for applying (time-constant, measured pre-treatment) covariates. So it will do it automatically for you.
@a_greater_fool
@a_greater_fool Ай бұрын
Your videos are always very clear and engaging. I appreciate your content!!
@cartilo2619
@cartilo2619 2 ай бұрын
great lecture, finally pieced together what I was lacking in class lectures
@eserhaneser
@eserhaneser 2 ай бұрын
What is your opinion on Sequential Synthetic Difference in Differences Dmitry Arkhangelsky, Aleksei Samkov?
@NickHuntingtonKlein
@NickHuntingtonKlein 2 ай бұрын
@@eserhaneser I don't know much about it
@eserhaneser
@eserhaneser 2 ай бұрын
@@NickHuntingtonKlein Thanks for the quick response! I’m looking for the most current, widely accepted method to evaluate the impact of a law that goes into effect in various states at different times while remaining inactive in others. I’m working on a paper, and I’m hearing a lot of conflicting advice. From my review of the literature, it seems like researchers often select a method that demonstrates the desired effect, but I want to ensure I’m using a sound, unbiased approach. Could you recommend a rigorous method for this type of analysis?
@NickHuntingtonKlein
@NickHuntingtonKlein 2 ай бұрын
@@eserhaneser unfortunately the answer is that different methods rely on different assumptions, and fail or are weak in different circumstances. So there isn't a single best option.
@flandernfields2478
@flandernfields2478 2 ай бұрын
Great and simple explanation. Thank you 🙏🏼
@woopwoopsoupsoup678
@woopwoopsoupsoup678 2 ай бұрын
Great video thanks!
@tankisolefeta5798
@tankisolefeta5798 2 ай бұрын
Hi, can you please explain Difference-in-Discontinuities (DiDC)
@NickHuntingtonKlein
@NickHuntingtonKlein 2 ай бұрын
I go into extensions of DID in the DID chapter of my book ( theeffectbook.net/ch-DifferenceinDifference.html ). I don't cover DiDC explicitly but I do cover DIDID which is only a small step away. Basically in DiDC you have an RDD that you think will only go into effect at a specific time. So interact your regular RDD specification with a before/after indicator, and the change in the RDD effect from before to after is your DiDC effect. Sometimes you do not just a cutoff that becomes active at a certain time but also for a certain group. Then you interact your RDD specification with both before/after, affected/unaffected group, and hte interaction between the two (basically a DID specification). The coefficient on the interaction between the DID interaction term and the RDD effect shows how the RDD effect change from before to after for the treated group relative to how it changes for the control group.
@tankisolefeta5798
@tankisolefeta5798 2 ай бұрын
@@NickHuntingtonKlein Thank you so much for the explanation, Nick!! I'm a final year PhD candidate in Health Economics at Stellenbosch University. I've used your book extensively and it's fantastic! ;-)
@tankisolefeta5798
@tankisolefeta5798 2 ай бұрын
Hi, can you please explain Difference-in-Discontinuities (DiDC)
@vikrantspeaks
@vikrantspeaks 2 ай бұрын
Can state-level minimum wage policy rollout in different time periods be considered as staggered treatment even though each state has its own minimum wage?
@NickHuntingtonKlein
@NickHuntingtonKlein 2 ай бұрын
Yes, typically this treats minimum wage *increases* as the relevant policy event delivered in a staggered fashion. Although I suppose you could also do some sort of continuous-treatment DID strategy to account for different levels or increase-sizes.
@donoiskandar6820
@donoiskandar6820 2 ай бұрын
Nice explanation as always, Nick; I have a question, though; how about the method that Duflo used when she estimated the effect of the school construction program in Indonesia when she exploited the variation of place of birth and cohort? Is it, in essence, similar to what Sant Anna does?
@NickHuntingtonKlein
@NickHuntingtonKlein 2 ай бұрын
@@donoiskandar6820 that paper predates the new methods by a long ways so it is not taking the same approach. Cohort variation is different from over-time variation so I'd need to read the paper to see if it needs the new methods.
@donoiskandar6820
@donoiskandar6820 2 ай бұрын
@NickHuntingtonKlein I see, I wonder whether Duflo's cohort approach is kind of substitutable with the staggered DID since in Duflo (2001; 2004) each school had a different time of school construction program implementation (depending on the region), so I guess in essence both allow estimating the impact of treatment at different times. But I have no clue pros and cons of both techniques. have been looking for comparison across the internet but haven't had any luck so far :')
@NickHuntingtonKlein
@NickHuntingtonKlein 2 ай бұрын
@donoiskandar6820 in that case duflo would probably benefit from an update using the new methods (or a bacon decomposition showing that the twfe didn't bias things much)
@jamesmettle2
@jamesmettle2 2 ай бұрын
why is the adjusted r squared in the manually generated regression different from the iv robust results
@NickHuntingtonKlein
@NickHuntingtonKlein 2 ай бұрын
The iv_robust R2 calculation uses a slightly different approach concerning how the IVs and their predictions are incorporated. In either case, R2 doesn't mean much in IV analyses and can be mostly ignored.
@ayselabdurahmanova9538
@ayselabdurahmanova9538 3 ай бұрын
Thank youu for the video. My question is how to solve the problem if there is no heteroscedasticity but autocorrelation problem. Should I still use vcovHC from coeftest or there exist special command only for autocorrelation problem
@NickHuntingtonKlein
@NickHuntingtonKlein 3 ай бұрын
The adjustment for autocorrelation is different. You can use vcovHAC or NeweyWest from the sandwich package, or NW from fixest. See this section of my book theeffectbook.net/ch-StatisticalAdjustment.html#your-standard-errors-are-probably-wrong
@Grimscribe732
@Grimscribe732 3 ай бұрын
Fantastic explanation, thank you!
@LungteNangram
@LungteNangram 3 ай бұрын
Professor you shouldn't record videos while it's earthquicking.
@isaacliu896
@isaacliu896 3 ай бұрын
One note: Python is actually by far most common in the private sector (and actually Stata for econ consulting), but other than that good points!
@mohammadrezamehrpour7724
@mohammadrezamehrpour7724 3 ай бұрын
great! what if that group is a collider? can we still say we are getting a causal effect? for example wealth effect on health among those who have visited physicians
@NickHuntingtonKlein
@NickHuntingtonKlein 3 ай бұрын
@@mohammadrezamehrpour7724 if the group is a collider, then splitting the sample or something like that would introduce collider bias you'd need to fix.
@楊林華
@楊林華 3 ай бұрын
😍
@楊林華
@楊林華 3 ай бұрын
😍
@楊林華
@楊林華 3 ай бұрын
😍
@楊林華
@楊林華 3 ай бұрын
😍
@sofialozanosamper3926
@sofialozanosamper3926 3 ай бұрын
thanks so much for this video, really helpful! I'm taking a Causal inference and Policy analysis class.
@TalhaHyderS
@TalhaHyderS 3 ай бұрын
The videos are pretty helpful. I read the book but this explains better
@digambarbhole9467
@digambarbhole9467 3 ай бұрын
can we select the text in windows in the same manner as you have shown? what is the key that we should press can anyone tell?
@NickHuntingtonKlein
@NickHuntingtonKlein 3 ай бұрын
this is a program-specific thing; it doesn't work in all Windows programs. Usually if it's in the text editor you're using, alt-click is the way to do it.
@RightAIopen
@RightAIopen 4 ай бұрын
Wold you have a R code for this? Also in the case I have the treatment happening in multiple time periods? Also just a few groups are treated each time so the treatment happen in different time points for each group of groups. I want to observe the effect in each city which in my case is each group of companies being treated in different time periods.
@NickHuntingtonKlein
@NickHuntingtonKlein 4 ай бұрын
In R the Callaway and Sant'Anna method can be performed using the did package, or the Wooldridge method can be peformed using the etwfe package.
@RightAIopen
@RightAIopen 4 ай бұрын
@@NickHuntingtonKlein Thank you so much for your reply and all those amazing videos. I tried both packages no success so far. Best
@NickHuntingtonKlein
@NickHuntingtonKlein 4 ай бұрын
@@RightAIopen That's odd, those packages are for the exact situation you described. Why didn't they work? (Unless you mean that your treatments turn on *and then off* at different times for different groups).
@RightAIopen
@RightAIopen 4 ай бұрын
​@@NickHuntingtonKlein They do, but even if I consider forever treated I have another problem. The DID report shows as an effect of the treatment the "group" effect. However this groups are not the cities with companies, they are the cities treated in the same year. Although I specify that the ID is the city group I can not extract the city effect. The grouping of cities treated together doesn't hold much relevance for my study - the focus is more on the individual cities or companies themselves.
@NickHuntingtonKlein
@NickHuntingtonKlein 4 ай бұрын
​@RightAIopen oh I see, easy fix then. Just do a separate DID estimation for each treated city, dropping all the other cities already treated at the time. You'll be dropping a lot of data for each estimation so your standard errors will be bigger but this design works (and you're inherently doing something noisier by getting individual effects, so bigger SEs make sense). Or if you have enough pre-treatment data, synthetic control instead of DID would be better.
@schafer4935
@schafer4935 4 ай бұрын
Thank you for the good video. I have a question. In your model Y=intercept+ß1*Time++ß2*Time * Group + E. We have to test wheter ß2 is different from zero. But how about a model in following set-up. Y = intercept + ß1 * Group + ß2 * Time + ß3 * Group * Time + E. Do I have to test (for parallel trend assumption), if ß1 differs from zero for the pre period? I am a bit confused because to my understanding ß1 depicts the effect of an observation being part of the treatment group and if it differs from zero, than there are (significant) differences and PTA doesn´t hold. Am I rigth? Very best regards!
@NickHuntingtonKlein
@NickHuntingtonKlein 4 ай бұрын
@@schafer4935 no, beta-1 would not be what you'd rest. In that model (assuming you've estimated it using only pre treatment data) you'd want to look at beta-3. This would test equality of (linear) prior trends.
@GeoLi2
@GeoLi2 4 ай бұрын
Nice
@remogurtner6907
@remogurtner6907 4 ай бұрын
Thank you very much for theses explanations. Do you have any insights on the sunab package by any chance? I'm currently struggling to understand how to incorporate fixed effects and if any are actually needed when using sunab() within fixest? example: feols(outcome ~ sunab(cohort, period) | firm + period, data) are the fixed effects necessary or not? Thank you in advance!
@NickHuntingtonKlein
@NickHuntingtonKlein 4 ай бұрын
@@remogurtner6907 I haven't used it much, but I believe sunab already adds the proper fixed effects for anything included. So your period fixed effects aren't necessary. The firm ones might be though. I'd check the example code in help(sunab)
@remogurtner6907
@remogurtner6907 4 ай бұрын
@@NickHuntingtonKlein thank you for the quick reply!
@abduislam23
@abduislam23 4 ай бұрын
Amazing content as always. So we can assess the relevance assumption through an empirical or a statistical test but we don't do the same with the validity assumption. Why? I mean somebody can come and suggest "Let's run a regression Y ~ Z + X so we essentially block the path Z -> X -> Y. If we found no association, the instrument is valid (no path between Z and Y). I know this reasoning is invalid but not sure if I have good reasoning for it.
@NickHuntingtonKlein
@NickHuntingtonKlein 4 ай бұрын
You could use an empirical test to assess the validity assumption *under some theoretical assumptions that cannot be verified*. For example, you could use a test like that to check the validity of Z *if you are very certain that Z -> X -> Y is the only possible path violating validity*. However, note that this assumes no other possible pathway like Z->X2->Y, or that X is potentially a collider - that test also doesn't work if the path Z->X<-X3->Y is on the diagram. So you can use an empirical test to *support* some of the assumptions you're making (like if cor(X, Z) is near 0 then your assumption that the path Z->X->Y is not on the diagram is more plausible, supporting your validity assumption), but since validity is inherently a causal assumption and not a predictive one, you can't test it using data alone.
@NickHuntingtonKlein
@NickHuntingtonKlein 4 ай бұрын
relevant section of the book theeffectbook.net/ch-InstrumentalVariables.html#checking-the-instrumental-variables-assumptions
@abduislam23
@abduislam23 4 ай бұрын
Why adding controls W to the 2SLS?
@NickHuntingtonKlein
@NickHuntingtonKlein 4 ай бұрын
There are two reasons to add controls in 2SLS: 1. To improve predictive precision and reduce standard errors 2. To support the validity assumption for the instrument. Often, we might think there is an open back door (or front door!) between the instrument and the outcome that does not go through the treatment of interest. In these cases we'd want to close those pathways down by controlling for variables.
@abduislam23
@abduislam23 4 ай бұрын
@@NickHuntingtonKlein Interesting! For #2, it's kind of ironic that IV, although promoted as a clever way to get around selection on observables, needs the unconfoundedness assumption too, which is in the realm of selection on observables.
@NickHuntingtonKlein
@NickHuntingtonKlein 4 ай бұрын
@@abduislam23 Yep! The idea is that the IV is *easier* to establish conditional unconfoundedness for than your treatment. i.e. maybe you can observe and measure all the confounders for your IV but not for your treatment. You still need conditional unconfoundedness.
@namelessbecky
@namelessbecky 4 ай бұрын
Thank you
@bolajiadedasola6369
@bolajiadedasola6369 4 ай бұрын
Wow! What a great tutor. Thanks Dr