No video

Stata Tutorial: Basics of Instrumental Variables and Two-Stage Least Squares

  Рет қаралды 16,401

Mike Jonas Econometrics

Mike Jonas Econometrics

Күн бұрын

We cover the basic theory and derivations of the Instrumental Variable and Two-Stage Least Squares estimators, then walk through an example of each in Stata.
We use the "ivreg" command, and apply the example to publicly available data accessed through the "bcuse" package.
Link to the excellent Introduction to Econometrics Textbook by AH Studenmund:
www.amazon.com...
Link to Jeffrey Wooldridge Introductory Econometrics Textbook:
www.amazon.com...

Пікірлер: 33
@DevikaSharma-bv9ro
@DevikaSharma-bv9ro 4 ай бұрын
Absolutely invaluable explanation, thank you! Also loved the Venn diagram, it's locked in my brain now :)
@sayedalimsamim551
@sayedalimsamim551 Жыл бұрын
Dear professor, thank you very much for your scientific explanation.
@matthewdouglas6988
@matthewdouglas6988 2 жыл бұрын
Your videos have been a great place for me to come after I've read the textbook and attended lecture. You really help clarify things - much appreciated!
@mikejonaseconometrics1886
@mikejonaseconometrics1886 2 жыл бұрын
Thanks! Glad they are helpful.
@emmanuelakuoko-konadu6469
@emmanuelakuoko-konadu6469 4 жыл бұрын
keep up the good work Mike. we're so so much enjoying the teaching.
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
Thank you! What other topics would be helpful?
@Cookiethemongrel
@Cookiethemongrel 2 жыл бұрын
Really useful and simple-to-understand explanation, especially the venn diagram! The use of STATA at the end was really helpful as well, so practical! Really appreciate the effort :)
@elodiegradlife6904
@elodiegradlife6904 Жыл бұрын
1:47 have a correlation between y2 regressor and error term, then any OLS coefficient estimator will be biased 2:21 assume x1 is exogenous uncorrelated with the error term, and y2 is endogenous 2:50 three properties for instrmental variable Z 8:36 2SLS and IV estimator 9:38 save the fitted (predicted) value of Y2 in stage one 10:53 do in STATA 13:10 error term might inlcude talent or hard-working that can also influence wage in addition to education 14:18 look for factors that related to education (Y2) but not affect wage (Y1) 15:37 eststo ols 16:05 ivreg wage exper (educ=sibs) 16:50 eststo iv; reg educ sibs exper; predict educhat (first stage) 17:29 reg wage exper educhat; eststo twostage; estout (second stage)
@AI_Masterpiece_
@AI_Masterpiece_ 2 жыл бұрын
Mike! You're saving me man! Such a clear explanation. Thank you!
@AI_Masterpiece_
@AI_Masterpiece_ 2 жыл бұрын
Have my subscribe as a token of my appreciation :)
@Laura-vn1qo
@Laura-vn1qo 3 жыл бұрын
Hi Mike, your videos have been superhelpful! Thank you so much
@rizkyyusviento4021
@rizkyyusviento4021 2 жыл бұрын
Thanks a lot, it helps me to conduct 2SLS. God Bless
@belenguerrero2087
@belenguerrero2087 4 жыл бұрын
thank you! it was very helpful
@samsayn5170
@samsayn5170 3 жыл бұрын
you are the man, a helpful man thx
@mikejonaseconometrics1886
@mikejonaseconometrics1886 3 жыл бұрын
Happy to help
@danielkrupah
@danielkrupah 2 жыл бұрын
Please after performing the two-step system GMM method, is it necessary to use the IV method to solve the endogeneity problem again?
@scotthu9833
@scotthu9833 4 жыл бұрын
nice job Mike! I hope you were my Econometrics teacher !
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
Thank you!
@AI_Masterpiece_
@AI_Masterpiece_ 2 жыл бұрын
Have a cup of coffee on me! You really saved me here!
@iskandaramanov189
@iskandaramanov189 4 жыл бұрын
Thank you Sir!!!!
@bafanashabangu9725
@bafanashabangu9725 3 жыл бұрын
Thanks man👍🏿
@mikejonaseconometrics1886
@mikejonaseconometrics1886 3 жыл бұрын
No problem 👍
@jenai20
@jenai20 3 жыл бұрын
so the point is to have the beta of interest (gunna refer to it as beta1) change due to the IV which indicates an unbiased beta1. and you want the ivreg code's adjusted beta1 to be the same as the two stage code adjusted beta1. Feel free to verify this for me even if you aren't mike. ALSO, would there be a time when the ivreg beta1 is NOT equal to the twostage beta1? I've been running some code and it seems to be a trend that the adjusted betas are equal and other than the rsquared i'm wondering if i should be looking for other indicators of a good IV. i know some of my IV should not be valid and i should check them by some other means i just don't know which means exactly
@popi20101
@popi20101 3 жыл бұрын
Thank you, it's quite clear. But I have question, should we use ivreg2 or ivreg or ivregress?
@mikejonaseconometrics1886
@mikejonaseconometrics1886 3 жыл бұрын
Good question. ivreg2 and ivregress give more options, mostly useful for over-identified 2SLS models. For "normal" IV models, ivreg will work fine.
@popi20101
@popi20101 3 жыл бұрын
@@mikejonaseconometrics1886 ok i'll try to simulate again
@EvilAbrasax
@EvilAbrasax 4 жыл бұрын
Dear Mike, thank you very much for this great video. I wish I found that earlier. If I may, I have a question. Maybe you could help me with that: As you explained, in the first step of the 2SLS I separate Y2 in two parts - a "good" part (Area D / predicted values) and a "bad" part (everything else / residuals). In the second step, I use the predicted values instead of Y2 in the orginal regression. But, what if the coefficient of the predicted values of Y2 is now insignificant? Especially if the augmented regression (Davidson and MacKinnon, 1993) shows me that the residuals are insignificant as well, and the Hausman test allows me to not reject the null hypothesis of exogeneity. Is this a major endogeneity problem? Shitty instrumental variable? Or can I assume that I have no endogeneity and, thus, the "correction" of the 2SLS is incorrect in this case? Thank you very much.
@sirawinpobsook3669
@sirawinpobsook3669 3 жыл бұрын
Thank you very much Mike. I 've a question about the second stage (10:44). What is B2(IV)?
@sirawinpobsook3669
@sirawinpobsook3669 3 жыл бұрын
Sorry I have another question, Is standard error of IV always less than 2SLS? Thank you in advance
@scotthu9833
@scotthu9833 4 жыл бұрын
Hi Mike...I just encountered a question...I find that that my OLS estimator and IV estimator have opposite sign (The First stage F value is 12)..May I ask what are the possible reasons?
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
In theory, that means that the endogeneity bias in OLS is so large that it pushes the estimate to the opposite sign of the “true” value. This won’t mean so much if neither OLS or IV estimates are significantly different from zero. I suggest trying IV with different instruments if possible, and if the results are robust, trust the IV coefficient.
@popi20101
@popi20101 3 жыл бұрын
What about to get estout with star (level of significancy)?
@mikejonaseconometrics1886
@mikejonaseconometrics1886 3 жыл бұрын
Try this: estout, cells(b(star) t) to get the coefficients with stars, and t-stats. Type "help estout" in Stata and scroll to the bottom to see other examples of modifications.
Using 'asdoc' to export Stata to Word
3:00
Mike Jonas Econometrics
Рет қаралды 30 М.
Stata Tutorial: Intro Data Cleaning with Panel Data
22:07
Mike Jonas Econometrics
Рет қаралды 40 М.
Now it’s my turn ! 😂🥹 @danilisboom  #tiktok #elsarca
00:20
Elsa Arca
Рет қаралды 11 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 193 МЛН
Two Stage Least Squares (2SLS)
20:29
Nathan Wozny
Рет қаралды 27 М.
Stata Tutorial: Fixing Heteroskedasticity in OLS
25:16
Mike Jonas Econometrics
Рет қаралды 27 М.
The very basics of Logit and Probit models in Stata.
28:33
Mike Jonas Econometrics
Рет қаралды 23 М.
Tobit and Heckman models in Stata
36:26
Mike Jonas Econometrics
Рет қаралды 32 М.
Stata Tutorial: Basic Panel Regression
19:10
Mike Jonas Econometrics
Рет қаралды 20 М.
Identification, Part 3: Instrumental Variables
4:39
Ashley Hodgson
Рет қаралды 65 М.
Panel Data Models in Stata
15:57
econometricsacademy
Рет қаралды 495 М.
Instrumental-variables regression using Stata®
5:23
StataCorp LLC
Рет қаралды 268 М.
Panel Data Regression 3of9 - Fixed Effects LSDV
10:48
Pat Obi
Рет қаралды 42 М.
Arellano-Bond approach to dynamic panel models
17:17
Mikko Rönkkö
Рет қаралды 38 М.
Now it’s my turn ! 😂🥹 @danilisboom  #tiktok #elsarca
00:20
Elsa Arca
Рет қаралды 11 МЛН