Stata Tutorial: Testing for Autocorrelation Pt. 1

  Рет қаралды 44,779

Mike Jonas Econometrics

Mike Jonas Econometrics

Күн бұрын

Пікірлер: 38
@tanyachikanda9121
@tanyachikanda9121 3 жыл бұрын
this vid just saved me. thank you so much, your explanation is so easy to follow, was never even told you could just paste the data code instead of downloading all 40 different data.(still crying though). again thank you Mike.
@sofiaalejandrabravoruiz4646
@sofiaalejandrabravoruiz4646 3 жыл бұрын
I´m from Ecuador and this video just saved me!!!! THANK YOU
@rafhurffer7884
@rafhurffer7884 3 жыл бұрын
You've saved my life and my degree, in that order
@vpphil
@vpphil Жыл бұрын
Thanks Mike. Great job.
@jasondew1054
@jasondew1054 3 жыл бұрын
Great video! I think k in the statistical table represents the explanatory variable (excluding the constant), hence in the example you were using, it is just 1.
@sky.582
@sky.582 5 жыл бұрын
Thanks man i've been struggling with Stata for a while
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
Glad it was helpful!
@jjgroup.investments
@jjgroup.investments 4 жыл бұрын
Great explanation! Best Regards from Buenos Aires
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
Thank you!
@rabihel-habta313
@rabihel-habta313 5 жыл бұрын
Amazing professor just have one comment could after uploading any tutorial include in the video description just the links for other tutorials if mentions in the uploded video? Which will ease finding the exact videos
@nadiataylor626
@nadiataylor626 3 жыл бұрын
Hi, do you know how I can test for autocorrelation in a panel data with 2Ts?
@fanaaraf8663
@fanaaraf8663 2 жыл бұрын
Hi Mike! I have cross sectional loan data. I want to test the impact of a unique independent variable X on interest rate. I will control for loan characteristics and borrower characteristics. I also want to control for macroeconomic variables such as unemployment, bond yield etc. my macroeconomic variables are monthly data. Should I use the same test as you used here to test autocorrelation for OLS?
@mazenmourad9546
@mazenmourad9546 3 жыл бұрын
Hi mike. How do I know whether to use xtreg or xtregar for fixed effects ??
@gglucs1799
@gglucs1799 3 жыл бұрын
thank you
@mikejonaseconometrics1886
@mikejonaseconometrics1886 3 жыл бұрын
very welcome!
@daphneashba
@daphneashba 4 жыл бұрын
When i was trying regress uhat on 1.uhat some error occurred. uhat: factor variables may not contain noninteger values r(452);
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
Ahh, the lag operator is the letter “L”, which looks just like a “one” in the stata font. Use “reg uhat L.uhat”. A very common mistake!
@daphneashba
@daphneashba 4 жыл бұрын
@@mikejonaseconometrics1886 Thank you sir .
@djangohinio
@djangohinio 3 жыл бұрын
Thank you :)
@mikejonaseconometrics1886
@mikejonaseconometrics1886 3 жыл бұрын
You're welcome!
@yuxinzhao2471
@yuxinzhao2471 4 жыл бұрын
An error comes up after the demand "tsline..." saying "time variable not set, use tsset varname...". What does that mean? The return code is 111.
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
You first need to create a variable that tracks each observation over time, the easiest of which is 'trend' = 1,2,3, ...etc. try this: 'gen trend=_n'; tsset trend'. Then the commands will work.
@yuxinzhao2471
@yuxinzhao2471 4 жыл бұрын
@@mikejonaseconometrics1886 Thank you! It worked!
@itlove9577
@itlove9577 4 жыл бұрын
I just liked this tutorial - Great! At the same time, I was wondering if you could recommend a test for autocorrelation in case of cross-sectional data. Specifically, I surveyed employees from one industry - namely the IT sector. Furthermore, I do not analyse geographical data.
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
Hi - glad you found the video helpful! It sounds like you might want to investigate "cluster-robust" standard errors for your cross sectional data. This will correct for cases of error correlated across employees in the same sector or region. In stata: reg y x,vce(cluster id). [where id is your sector variable]
@shelleyxueqili8165
@shelleyxueqili8165 3 жыл бұрын
Thanks so much for asking this question!
@shelleyxueqili8165
@shelleyxueqili8165 3 жыл бұрын
@@mikejonaseconometrics1886 Super clear, Professor!
@glendurgrantig1391
@glendurgrantig1391 5 жыл бұрын
really helpful video
@Dr_Shiny
@Dr_Shiny 5 жыл бұрын
Fantastic work. hats off. Sir, I have a panel data, T=41, N=16 (T>N). Dear Prof. When I run "estat dwatson" in Stata, It gives me this error "sample may not include multiple panels" Please help me to solve it.
@mikejonaseconometrics1886
@mikejonaseconometrics1886 5 жыл бұрын
The Durbin-Watson test is valid only for pure time series, and does not handle autocorrelation within panel data. There is a command "xtserial" that should work for you, although I do not have a tutorial for it.
@Dr_Shiny
@Dr_Shiny 5 жыл бұрын
Mike Jonas Econometrics thank you dear Prof
@porschelouis6195
@porschelouis6195 5 жыл бұрын
excuse me ‘teacher, can i ask for UNRATE what’s it and what command for creating
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
UNRATE is the code for US unemployment rate used by the Federal Reserve Economic Database. Use these commands to acquire the data series from within Stata: 'ssc install freduse'; 'freduse UNRATE'
@silarbiyoucef5888
@silarbiyoucef5888 4 жыл бұрын
what about autocorelation in panel data ?
@mikejonaseconometrics1886
@mikejonaseconometrics1886 4 жыл бұрын
Hi - Great Question! The 'xtregar' command will let you run FE or RE with an autocorrelated idiosyncratic disturbance term (www.stata.com/manuals13/xtxtregar.pdf). For panel autocorrelation due to the time-invariant error, FE, RE or cluster robust SE will handle that.
@fones13
@fones13 Жыл бұрын
i love you
@rashikrayat9536
@rashikrayat9536 2 жыл бұрын
Can you share the dataset?
@jovial129
@jovial129 4 жыл бұрын
13:20
Stata Tutorial: Fixing Heteroskedasticity in OLS
25:16
Mike Jonas Econometrics
Рет қаралды 27 М.
Testing for Autocorrelation in Stata Pt. 2: The Breusch-Godfrey Test
7:36
Mike Jonas Econometrics
Рет қаралды 21 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 18 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 136 МЛН
the balloon deflated while it was flying #tiktok
00:19
Анастасия Тарасова
Рет қаралды 35 МЛН
Stata Tutorial: Correcting Autocorrelated Errors in OLS
21:37
Mike Jonas Econometrics
Рет қаралды 25 М.
Stata Tutorial: Basic Unit Root Test
23:57
Mike Jonas Econometrics
Рет қаралды 54 М.
What is autocorrelation? Extensive video!
36:02
zedstatistics
Рет қаралды 138 М.
Stata Tutorial: Breusch-Pagan Test for Heteroskedasticity
8:42
Mike Jonas Econometrics
Рет қаралды 39 М.
Stata Tutorial: Out of Sample Forecasts
17:12
Mike Jonas Econometrics
Рет қаралды 22 М.
Time series in Stata®, part 1: Formatting and managing dates
5:27
StataCorp LLC
Рет қаралды 299 М.
Stata Tutorial: White Test for Heteroskedasticity
12:16
Mike Jonas Econometrics
Рет қаралды 41 М.
Panel Data Models in Stata
15:57
econometricsacademy
Рет қаралды 496 М.