Stata Tutorial: Correcting Autocorrelated Errors in OLS

  Рет қаралды 25,510

Mike Jonas Econometrics

Mike Jonas Econometrics

Күн бұрын

A simple walk-through of how to use three options for dealing with auto-correlated errors in a simple OLS framework: first-difference, generalized difference, and robust standard error models are shown in Stata, and briefly explained.
Testing for Autocorrelation - Part 1:
• Stata Tutorial: Testin...
Link to "Gentle Introduction to Stata"
www.amazon.com...
Link to the excellent Introduction to Econometrics Textbook by AH Studenmund:
www.amazon.com...
Link to Jeffrey Wooldridge Introductory Econometrics Textbook:
www.amazon.com...
My Twitter is:
/ michaelrjonas
My Google Scholar Page:
scholar.google...
ResearchGate:
www.researchga...

Пікірлер: 31
@humanparaquat69
@humanparaquat69 3 жыл бұрын
I use this channel all the time when doing my econometrics assignments at the university of amsterdam. Thanks a lot!
@siyavashmonajem8719
@siyavashmonajem8719 4 жыл бұрын
I had a project for estimating the function of money demand in Iran, because my data were time series so I had Auto - correlation problem and I wasn't able to fix it, but when I saw this video I fixed my project. I just wanted to say thank you so much Mike! keep going :)
@venuskaraitiana
@venuskaraitiana 5 жыл бұрын
This is literally getting me through my last minute study session. Thank you for your step-by-step easy to follow videos!
@chetnabhagat5472
@chetnabhagat5472 3 жыл бұрын
This is extremely helpful sir, thanks a lot! The intuitive explanations that you give side by side help in making concepts clear and easily comprehensible
@aditya-dixit
@aditya-dixit 4 жыл бұрын
As always amazing video, thank you!
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
Thank you, Aditya - Hope you are doing well!
@patronusstag
@patronusstag 4 жыл бұрын
So so helpful, thank you so much!
@vitaly_p
@vitaly_p 2 жыл бұрын
Very helpful! Thank you!
@MdSalaUddin-ud7yf
@MdSalaUddin-ud7yf 4 жыл бұрын
Hi, I Have tried to follow you but I can not go father because, 1) reg e2hat 1.e2hat e2hat: factor variables may not contain noninteger values r(452); And in second way, 2)Durbin-Watson statistic (original) 0.585531 Durbin-Watson statistic (transformed) 2.992524 convergence not achieved r(430); Could you please explain me, why I am facing these problem. Thanks!
@zoozolplexOne
@zoozolplexOne 2 жыл бұрын
Cool !!!
@ywang1801
@ywang1801 4 жыл бұрын
Hi Mike, thanks for the video! May I ask how can we determine the number of lags when using the newey-west test?
@JayB948
@JayB948 5 жыл бұрын
wonderful
@mikejonaseconometrics1886
@mikejonaseconometrics1886 5 жыл бұрын
Thanks!
@chrisdaniels4446
@chrisdaniels4446 2 жыл бұрын
Thanks a lot. But how do you check for autocorrelation for logistic regression and how do you solve for the autocorrelation if it exists in logistic regression
@hangwang5688
@hangwang5688 2 жыл бұрын
Thanks for the video. But how to interpret the coeficients in first-difference and generalized difference? I noted that these coeficients are different from the coeficient derived from OLS and newey-west.
@tsegayemulisa4143
@tsegayemulisa4143 2 жыл бұрын
thanks! but what about longitudinal panel data to fix such problem??
@ladydija3228
@ladydija3228 2 жыл бұрын
Please how can we run the prais winsten regression for correcting autocorrelated errors and heteroscedasticity in the same time ?
@sujaanaryal6355
@sujaanaryal6355 3 жыл бұрын
Generalized Least Squares was a bit unclear (especially with the formula), rest looks awesome as always. :))
@frostivied9239
@frostivied9239 5 жыл бұрын
Hello, thanks for the tutorial. I wonder if this is applicable to panel data?
@qualitya407
@qualitya407 5 жыл бұрын
HI dear Jones. the question is: which one of these methods is better for all kind of autocorrelation model such ARMA and ARIMA......??? and can you proposed me a reference to study the robust st..... model?
@FrentescuMario
@FrentescuMario 4 жыл бұрын
What if after applying the First Difference Correction the r squared value is way lower, to 19% from 52%? Is the model stil Valid?
@rabihel-habta313
@rabihel-habta313 5 жыл бұрын
Amazing! Have onenuqestion though since we're working in a time series context why you didn't test for stationarity before regressing variables?
@saber5543
@saber5543 4 жыл бұрын
Hi, Thanks for the video. I came up with some questions. I am working with a time series dataset, and I have nonstationary variables, all I(1). there are also heteroskedasticity and autocorrelation issues as well as non-normal distribution in the error term. I know all of these are weird, but would you give me some hint about how I can deal with these issues? (1) how can I double-check whether my data's Autocorrelation issue is solved after using newey command? (2) What is the test and correction for autocorrelation for I(1) variables? (3) what are the steps in my case? I mean, do I need to correct the nonnormality then check the stationary? Thank you very much.
@liangchengwengchen111
@liangchengwengchen111 4 жыл бұрын
Hey, Mike. Thanks for the video! but what happens when rho is negative e.g."-0.2"? However, it helped me to fix the negative autocorrelation from 2.3 to 1.985
@mathiasgrunenberg443
@mathiasgrunenberg443 3 жыл бұрын
Helllo Sir :) I wanted to ask you how I check the autocorrelation once I used the HAC standard errors... when I write the command estat dwatson right after the newey regression... its doesnt give me any number?
@fatihaarar5770
@fatihaarar5770 3 жыл бұрын
Good evening sir, I want to ask you, I have estimated the panel models and I did the Breusch-Pagan LM and F test I found that the PRM aggregate regression model is suitable and when I checked the autocorrelation I found that there is autocorrelation between the errors How do I correct this autocorrelation
@mariaelisadallaverita5434
@mariaelisadallaverita5434 4 жыл бұрын
Thank you for the videos! They are helping me writing my final master dissertation. Although, I have a question, how can I choose the optimal lags when using Newey and West? Thank you!
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
You will need to establish the order of the autoregressive process for the residuals, which technically requires the Box-Jenkins specification process and the autocorrelation and partial autocorrelation functions. An approximation can be achieved by running a regression of the residual on the first two lags, and if both lags are significant, it's likely an AR(2), and a second lag should be used in the newey-west calculation.
@mariaelisadallaverita5434
@mariaelisadallaverita5434 4 жыл бұрын
@@mikejonaseconometrics1886 Many thanks for the help!
@Dr_Shiny
@Dr_Shiny 5 жыл бұрын
But the R^2 for all these solutions are very low. How to justify this Sir?
@jovial129
@jovial129 4 жыл бұрын
15:57
Stata Tutorial: Testing for Autocorrelation Pt. 1
14:30
Mike Jonas Econometrics
Рет қаралды 44 М.
OLS Multicollinearity Issues in Stata
16:30
Mike Jonas Econometrics
Рет қаралды 20 М.
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 205 МЛН
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 41 МЛН
Stata Tutorial: Cointegration and Error Correction
13:25
Mike Jonas Econometrics
Рет қаралды 33 М.
Stata Tutorial: Fixing Heteroskedasticity in OLS
25:16
Mike Jonas Econometrics
Рет қаралды 27 М.
Serial Correlation in Panel Data
7:24
YUNIKARN
Рет қаралды 4,2 М.
Stata Tutorial: Basic Panel Regression
19:10
Mike Jonas Econometrics
Рет қаралды 20 М.
Stata Tutorial: Intro Data Cleaning with Panel Data
22:07
Mike Jonas Econometrics
Рет қаралды 40 М.
Dealing with Autocorrelation in Time-Series Models (Stata)
13:40
Todd R. Yarbrough, Ph.D.
Рет қаралды 1,8 М.
Stata Tutorial: Basics of Instrumental Variables and Two-Stage Least Squares
19:15
Mike Jonas Econometrics
Рет қаралды 16 М.
Stata Tutorial: Breusch-Pagan Test for Heteroskedasticity
8:42
Mike Jonas Econometrics
Рет қаралды 39 М.