Cointegration and Error Correction Model in Stata

  Рет қаралды 38,320

JDEConomics

JDEConomics

Күн бұрын

Cointegration and Error Correction Model in Stata. Time series Analysis: Cointegration tutorial using the Engle and Granger 2 steps method.
Learn how to test if two or more variables are cointegrated and learn how to estimate the short run model. Also, You will learn how to interpret the error correction term which is reffered to as "speed of adjustment".
📈 Download the dataset (free) and/or buy the slides and DO file at:
jdeconomicstore.com/b/cointeg...
✅ This video is part of a FREE STATA Course. See the full course outline at:
www.jdeconomics.com/stata-tut...
✅ Check all my video tutorials available and more on my website:
www.jdeconomics.com/home
--------------------------------------------------------------------------------------------------
Socials
📺 For more videos likes this, please subscribe:
/ @jdeconomics
✅ Follow me on Twitter:
/ economicsjd
✅ Follow me on Instagram:
/ jd_economics
✅ Visit my Website:
www.jdeconomics.com/
--------------------------------------------------------------------------------------------------
🕘 Timestamps:
🎬 In this video the following analysis is performed:
👋 Introduction 0:00
📊 Cointegration Overview 0:53
📊 Engle and Granger Method 1:48
📊 Cointegration - Example 3:40
📊 Order of Integration 5:55
📊 Long Run Regression 7:52
📊 Method 1: Cointegration Test Tables 9:38
📊 Method 2: Cointegration Test 13:47
📊 Short Run Model 16:17
📊 Error Correction Term Details 19:47
📊 Interpretation of the models 20:58
📊 Model Diagnostics 22:52
---------------------------------------------------------------------------------------------------------
✅ Interested in learning more?
🎬 Learn how to write your research paper in a fancy way in Latex with Overleaf: • Latex with Overleaf Tu...
🎬 EViews Course videos:
• Applied Time Series An...
🎬 Stata Course videos:
• Time Series Analysis: ...
---------------------------------------------------------------------------------------------------------
If you liked the video and would like more content, please support my channel subscribing!
👍Like and subscribe for more videos!
☕️ If you would like to show your appreciation and make a donation:
💳 www.paypal.com/paypalme/JDEco...
Thanks a lot!

Пікірлер: 91
@JDEconomics
@JDEconomics 2 жыл бұрын
Hello Everyone! Thanks a lot for your support and helping me reach +1,000 subscribers! ✅Please subscribe to my channel by clicking: kzbin.info/door/5P21WGFO4WRUlAiGLcwymg ✅ Download the Dataset and/or Buy the DO File at: jdeconomicstore.com/b/cointegration-stata ✅Visit my website for all my content: www.jdeconomics.com/ Thanks a lot for all your support and positive Feedback! Good luck on your research and courses! JDEconomics
@user-lr2tk5yr1h
@user-lr2tk5yr1h 7 ай бұрын
Great job on this explanation! I'd love to see more videos diving into panel data analysis and other co-integration techniques like ARDL, CRDF etc. Your clear explanations really make complex topics easier to understand. Looking forward to more content like this!
@JDEconomics
@JDEconomics 7 ай бұрын
Thanks a lot! Please feel free to subscribe to my channel and share it with your friends/social network. I wish you good luck in your studies/work!
@imansharif5363
@imansharif5363 2 жыл бұрын
Above all Juan I love the economic interpretation you give to your models and results this helps a lot xx
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks for your positive feedback! Kind regards, JD
@imansharif5363
@imansharif5363 2 жыл бұрын
@@JDEconomics Juan I have been looking for your interpretation of GMM models in STATA couldn’t locate it if you haven’t done them yet pls do many thanks xx
@solomonyemidi3203
@solomonyemidi3203 2 жыл бұрын
A video on Threshold Regression will be a big plus. Thank you for the effort.
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks for your feedback! JD
@linaabdelfatah8855
@linaabdelfatah8855 2 жыл бұрын
Brilliant way of walking the audience through theory and empirics! Can you please post a video on VECM in STATA using a multivariate model? it would be massively helpful! thanks so much :)
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks for your feedback! Will consider it for coming videos. Best regards, JDEc
@krapik87
@krapik87 Жыл бұрын
@@JDEconomics I join the request for material on VECM. Thank you for this one -- well-explained theoretical part.
@tathagatsarthaka6065
@tathagatsarthaka6065 2 жыл бұрын
Doubt: So I am running a VECM model on 5 variables with 1 dependent variable. However, my variables are integrated of different order. What should be the way forward in this case??
@solomonyemidi3203
@solomonyemidi3203 2 жыл бұрын
I love your videos so much and they have been very helpful in polishing us. I would be happy if you could do a video on Monte Carlo Simulation. Thanks
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks a lot for your positive feedback. I will consider your video suggestion and add it to the list. Regards! JDEC.
@umeairshahzad7497
@umeairshahzad7497 10 ай бұрын
Very beneficial and excellent work. Thank you so much JD Economics!
@JDEconomics
@JDEconomics 10 ай бұрын
Thanks a lot for your kind feedback! Good luck
@yusauaudu9044
@yusauaudu9044 2 жыл бұрын
Hi, Please, what can I do if my eganger test of error term isn't significant? I also noticed that because of the above, both the Logged-difference of the independent variable and the lagged error term aren't significant at 5% level of significance when I regressed the dependent variable against them.
@richardolufemi3138
@richardolufemi3138 Жыл бұрын
Thank you, @JDEconomics this video was really helpful for my understanding
@JDEconomics
@JDEconomics Жыл бұрын
That’s great. Thanks for your feedback!
@vinayhatte6075
@vinayhatte6075 2 жыл бұрын
Thank you, JD ,very helpful for my thesis presentation
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks! I am glad it was helpful! Regards, JD
@mehrojsanginov1368
@mehrojsanginov1368 Жыл бұрын
Thank you very much for the description of the relevant technics which i am using in my study.
@JDEconomics
@JDEconomics Жыл бұрын
I am glad it helped you! Good luck!
@hosnywahyana6332
@hosnywahyana6332 2 жыл бұрын
thank you very much JD you're really a life saver
@JDEconomics
@JDEconomics 2 жыл бұрын
Hi! Thanks for your message. I am glad you liked the video. Feel free to share it with your friends. Best Regards, JD
@Sarpamus
@Sarpamus 2 жыл бұрын
well explained with a good speech style. thank you
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks! Best Regards, JD
@muhammadzubairchishti1795
@muhammadzubairchishti1795 2 жыл бұрын
Dear Respected Prof! Kindly make the videos on short-run and long-run causality, and the Panel VAR causality test.
@user-ov1to6cs7i
@user-ov1to6cs7i 8 ай бұрын
Thank you, great lecturer
@JDEconomics
@JDEconomics 8 ай бұрын
Thanks a lot! Please feel free to subscribe to my channel and share it with your friends/social network. I wish you good luck in your studies/work!
@willwu5366
@willwu5366 2 жыл бұрын
Thanks J D!I am looking forward to learning a panel cointegration test in Eviews from your channel:)
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks!
@zyz4977
@zyz4977 2 жыл бұрын
Thank you for this part! I have one question about exploring the relationship between series. For a bivariate analysis, can I explore the short-run relationship by VAR model and explore the long-run relationship by ECM model displayed in this video? Thanks so much !
@JDEconomics
@JDEconomics 2 жыл бұрын
If you are working with a var models, you should use a VECM model. I will try to do a series of videos on it hopefully some time in the future. I have many tutorials to work on. But I will definitely try to cover VEC models. Regards, JD
@user-wq7fg8rz7m
@user-wq7fg8rz7m Жыл бұрын
What does it mean when my long-run model is cointegrated, but in the short-run model my error correction term is statistically insignificant. I have a sample size of 2700 but both swilk and wntestq indicate the residuals in my error-correction model are autocorrelated and not normally distributed
@besongwilson800
@besongwilson800 2 жыл бұрын
Hi. Thanks for the explanation on ECM above. My worry is, if after testing for cointegration using the Engle and Granger test above and the variables were found not to be cointegrated, would the Error Correction model still be an appropriate technique to use? If not, what would be the proper technique of analysis to use?
@JDEconomics
@JDEconomics 2 жыл бұрын
Hi, it all depends on what you are working on. Normally you take differences of the variables and work with a var model. Or you can work with linear regression, and include some dynamics to ensure there is no autocorrelation and the blue conditions are satisfied. What methodology you use is upto you. I suggest you look in google scholar for the existing literature about your topic of interest. There is a lot of literature already which can help you. Good luck! jD
@adamaballo6897
@adamaballo6897 Жыл бұрын
Tk you very much, I'm from IVORY COAST in West AFRICA🙏🙏🙏
@JDEconomics
@JDEconomics Жыл бұрын
You’re welcome! Great Ivory Coast!
@abalhassanesilahi9466
@abalhassanesilahi9466 7 ай бұрын
EXCELLENT
@JDEconomics
@JDEconomics 7 ай бұрын
Thanks a lot! Please feel free to subscribe to my channel and share it with your friends/social network. I wish you good luck in your studies/work!
@zoozolplexOne
@zoozolplexOne 2 жыл бұрын
Cool !!
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks!
@yusauaudu9044
@yusauaudu9044 2 жыл бұрын
Thank you for your amazing videos. Pls, the "ssc install egranger" command didn't work on my stata13, version? Furthermore, is there any other way I could do the test without command?
@JDEconomics
@JDEconomics 2 жыл бұрын
Hi, sorry for the late reply. You should probably check the stata 13 manual. I am not sure of it. Good luck! JD
@murphyrolland2884
@murphyrolland2884 2 жыл бұрын
Hello. this is a fantastic tutorial, thank you. Question - what happens if any of the diagnostic tests are failed?
@JDEconomics
@JDEconomics 2 жыл бұрын
No problem. Make sure to check my website, www.jdeconomics.com If a test fails, will depend on the type of test. You can always work it out. Regards
@BialjuritzLou
@BialjuritzLou 3 ай бұрын
Is this video related to VECM or do you have a video about evryting VECM just like in the VAR?
@JDEconomics
@JDEconomics 3 ай бұрын
Hi! This isn’t VEC. I haven’t posted a video about VEC yet. Regards
@filipfilipovic9438
@filipfilipovic9438 Жыл бұрын
Hi!😃One question. Should we use: egranger x y, lags() or egranger x y, no lags. Which one to use? Because frequently happens to me that using granger cointegration test with specified lags can show no cointegration between series in comparaison to egrangers like in your case, with no lags . Thank you so much.
@JDEconomics
@JDEconomics Жыл бұрын
Just egranger is fine. Cheers
@benlonsdale9784
@benlonsdale9784 4 ай бұрын
Hi, what is the purpose of the noconstant bit after dfuller test and when is it appropriate to use?
@JDEconomics
@JDEconomics 4 ай бұрын
Hi! Including a constant in a regression model assumes that the mean of the dependent variable is stable over time. If the series wiggles around a mean of zero, it suggests that the series is already mean stationary, and including a constant might not be appropriate because it would introduce bias into the model. However, if the series starts from a value other than zero (like 10), it could indicate that a constant term should be included to account for this initial level. So, in such cases, excluding the constant with the "noconstant" option might not be appropriate. Regards, JD
@daiane_2310
@daiane_2310 2 жыл бұрын
Waiting for garch video 🌻, have you ever did panel data garch? I would love !
@JDEconomics
@JDEconomics 2 жыл бұрын
Just in case you chase me everywhere, I will say I haven't done any panel data or anything else. hahahah. I will work on the Garch this weekend.
@daiane_2310
@daiane_2310 2 жыл бұрын
@@JDEconomics ok thank you !
@rupalimiglani3836
@rupalimiglani3836 2 жыл бұрын
Hello sir In the last table where you have shown the comparison between the long run and short run models there the p-values are different from the ones that you obtained earlier in the models. Why is it so?
@JDEconomics
@JDEconomics 2 жыл бұрын
Hey. I could have forgotten to update the pvalues in the slides. Just make sure you fill the table with the pvalues from the estimated models. Rrgards
@vivielyda2194
@vivielyda2194 2 жыл бұрын
Thank you sir 🙏🏻 please you make explanation vecm panel data. Thankyou 🙏🏻
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks for your feedback! Will add it to the list. Regards, JD
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks for your feedback! Will add it to the list. Regards, JD
@etbedtalksAOH
@etbedtalksAOH 6 ай бұрын
Thank you sir. One confusion regarding whether or not to go for cointegration. Some are saying its appropriate if we have a mixture of I(0) and I(1) variables. Or should all variables be of the same order?
@JDEconomics
@JDEconomics 6 ай бұрын
Same Order
@josefinaramos6534
@josefinaramos6534 Жыл бұрын
in min 19:14 I am not sure that is the interpretation of the coefficient? it is a first difference of a log-variable...
@getabegaz
@getabegaz Жыл бұрын
Thanks
@JDEconomics
@JDEconomics Жыл бұрын
My pleasure! Make sure to check my website! Www.jdeconomics.com Good luck!
@usmanbuba1049
@usmanbuba1049 Жыл бұрын
Thanks for the video. I need the Do file please.
@JDEconomics
@JDEconomics Жыл бұрын
Here is the link jdeconomicstore.com/collection/stata Good luck!
@lo1970
@lo1970 10 ай бұрын
Thanks, do a video on svar with stata
@JDEconomics
@JDEconomics 10 ай бұрын
Thanks for your feedback! I will take it into account for future tutorials. Regards, JD
@aytekinguven7151
@aytekinguven7151 2 жыл бұрын
How can I reach the trade and cpi data you used in your video?
@JDEconomics
@JDEconomics 2 жыл бұрын
Hi! In my website you can find the link to download the data to replicate the content. If you want to download any other data, you can try the website FRED (Federal reserve) or World data Bank or the International Monetary Fund. Regarda
@justicekelvindzameshiekwad7628
@justicekelvindzameshiekwad7628 3 ай бұрын
what do you do if one was stationary upon the first check, do you still do cointegration?
@JDEconomics
@JDEconomics 3 ай бұрын
They need to be of the same order of integration. If they aren’t, you need to try another model.
@jbrownmusic7742
@jbrownmusic7742 2 жыл бұрын
How would you write out the short run model equation without a constant?
@JDEconomics
@JDEconomics 2 жыл бұрын
You would just remove the "c" from the equation. Lmk if you have questions, regards. JD
@Ahmed-jl7uh
@Ahmed-jl7uh 2 жыл бұрын
Please make a video on ARDL
@JDEconomics
@JDEconomics 2 жыл бұрын
Thanks for your suggestion!
@hahaha34178
@hahaha34178 Жыл бұрын
Hi sir, I just want to ask if my variables are stationary at lever 1 but not cointegrated, what should I do next? Should I use a var model in the first difference?
@JDEconomics
@JDEconomics Жыл бұрын
Depends on what type of model it is. Can be a var or linear regression. Cheers
@hahaha34178
@hahaha34178 Жыл бұрын
@@JDEconomics thank you
@hahaha34178
@hahaha34178 Жыл бұрын
@@JDEconomics thank you very much for the help
@nabilaa.vashti2602
@nabilaa.vashti2602 2 жыл бұрын
Hi Sir, if my variables are stationary at different levels, how is the command if I input ECT?
@JDEconomics
@JDEconomics 2 жыл бұрын
Hi, to use this type of models, you need the variables to be of the same order of integration. Regards, JD
@nabilaa.vashti2602
@nabilaa.vashti2602 2 жыл бұрын
@@JDEconomics Oh I see, so I can choose between I(0) or I(1) to regress it with ECT?
@JDEconomics
@JDEconomics 2 жыл бұрын
@@nabilaa.vashti2602 If your variables are I(0), you can just estimate a normal linear regression. If your variables are I(1) and you confirm there is cointegration, you can estimate the short run model with the error correction term. If your variables are different order of integration, you can't use this model. Hope that helps to clarify your doubts, Regards, JD
@mrmarwayosiayakobo5209
@mrmarwayosiayakobo5209 6 ай бұрын
what if your residual is not significant?, how are we going to make residual significant?
@JDEconomics
@JDEconomics 6 ай бұрын
In such case the variables are not cointegrated.
@loricris9
@loricris9 5 ай бұрын
with panel data?
@JDEconomics
@JDEconomics 5 ай бұрын
I don’t have videos about panel data. But I should
@loricris9
@loricris9 5 ай бұрын
"But do you have any hints to do it with panel data, please? I'm working on a project and I need to determine the short-term model with ECM in panel data."@@JDEconomics
VAR model in stata Part 1
21:10
JDEConomics
Рет қаралды 50 М.
Cointegration - Engle and Granger method in EViews
28:34
JDEConomics
Рет қаралды 39 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 22 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,5 МЛН
Introduction to the Vector Error Correction Model
12:33
Justin Eloriaga
Рет қаралды 20 М.
Stata Tutorial: Cointegration and Error Correction
13:25
Mike Jonas Econometrics
Рет қаралды 33 М.
Integration, Cointegration, and Stationarity
21:23
Quantopian
Рет қаралды 54 М.
Time Series Analysis in Stata - AR Forecast
15:03
JDEConomics
Рет қаралды 5 М.
ARIMA models in Stata - Part 1: Identification
19:04
JDEConomics
Рет қаралды 41 М.
Econometrics - Vector Error Correction Model: Johansen Test
12:44
Cointegración, y el modelo de corrección del error.
27:07
Todo Econometría
Рет қаралды 3,4 М.
Create and Edit Economics Graphs in Stata
14:28
JDEConomics
Рет қаралды 2,6 М.
VAR model in stata part 2
17:21
JDEConomics
Рет қаралды 26 М.