Building a VAR Model in R

  Рет қаралды 63,606

Justin Eloriaga

Justin Eloriaga

Күн бұрын

Пікірлер: 63
@ariszoleta5799
@ariszoleta5799 4 жыл бұрын
This is great. This is very helpful for an entry-level graduate students in economics.
@miltonjomochirwa4611
@miltonjomochirwa4611 3 жыл бұрын
Thumbs for you sir. Your materials are really helpful, especially with the dataset links you provided. You're a Genius 👏
@aizhasbeisembay
@aizhasbeisembay 2 жыл бұрын
Best video I have ever seen. Thanks Justin. Much love
@lavs8696
@lavs8696 3 жыл бұрын
dude you are so amazing and thorough at explaining u have helped me so much, love u
@accountlastname1170
@accountlastname1170 3 жыл бұрын
This was very helpful! But don't we have to check for stationarity first before using VAR? Thanks!
@tansutazegul8297
@tansutazegul8297 Жыл бұрын
First seasonality, then sattionarity.
@enzorodriguez9537
@enzorodriguez9537 4 жыл бұрын
great video, so clear in how to use VAR packages!
@nilima.gautam
@nilima.gautam 3 жыл бұрын
This video is very informative, good work. Thank you for sharing
@Ddmmyy10
@Ddmmyy10 3 жыл бұрын
This video is really helpful! thanks for sharing it!
@SloppyJoeFilling
@SloppyJoeFilling 2 жыл бұрын
This is really useful stuff thank you very much!
@rorydempsey8058
@rorydempsey8058 3 жыл бұрын
Anyone know why I cannot load the library(vars) package?
@JBellottS
@JBellottS 2 жыл бұрын
do you have an application for a threshold var or vecm?
@andrenovaisgoncalves7529
@andrenovaisgoncalves7529 4 жыл бұрын
Thank you SO MUCH for this! You helped me a lot!
@000Requiem
@000Requiem 3 жыл бұрын
Were those series stationary??? I think a Dickey Fuller test here is missed.....
@karanwadekar3392
@karanwadekar3392 2 жыл бұрын
Hi Justin. Thanks for such an informative video. The unemployment data has a structural break in 2005(3). Since that issue has not been addressed prior to VAR modeling, I would like to know whether VAR models are not affected by the structural break
@hector5181
@hector5181 3 жыл бұрын
Hi, what happen if the unit roots are not in the circle unit? there is any way to solve it? Thanks in advance
@JustinEloriaga
@JustinEloriaga 3 жыл бұрын
Try and check if the data is stationary. You may use various tests such as the ADF or PP tests. Alternatively, you may do log transformations.
@jhonheider9680
@jhonheider9680 4 жыл бұрын
Hi, Justin. Hope you're fine. I'm trying to run a VAR model with financial data (return assets) as independent variables to explain the behavior of a implied volatility index according to the specific theory. To obtain the return of the assets, I need to transform the data applying the log calculus, which gives me missing data. As a strategy to overcome this problem, I just exclude the rows coitaning missing data using the command [-c(' specific rows') , ] while I'm constructing the dataset with the cbind command. The model was done, but when I try to get the information from the summary function I obtain the following message: 'summary may be unreliableError in solve.default(Sigma)'. This problem doesn't occur when I exclude only one row from the transformed data (e.g., a return asset with one lag specification); Could you help me, please? Thank you so much.
@ouamboceline3156
@ouamboceline3156 4 жыл бұрын
earlier in the comment you said we could just add the variable when we run the cbind command if we have more than 2 variables, To add to this question what if one of the multiple variables is not in a percentage form. half of my variables are rates of returns and the other half are all different; example kilowatts for electricity, barrel for oil. what will you recommend I do?
@1adamc3
@1adamc3 4 жыл бұрын
Great video, very clear!
@nickomanu
@nickomanu 3 жыл бұрын
Hello, thank you very much for your videos, they're extremely useful! May I ask you a question, how do you choose "lag.max" in optimal lag selection. For example what is appropriate "lag.max" for a weekly data?
@asmafiaz6590
@asmafiaz6590 3 жыл бұрын
hello, Justin, it is a very helpful video thank you a lot. but kindly can you help in modeling the Markov regime-switching var model too.
@lindayang9094
@lindayang9094 4 жыл бұрын
Hi Justin thank you for the video! Is there a reason why you chose 'const' for the type (instead of 'none', 'trend', or 'both')? I receive desirable results when the type is 'none' and was wondering if a VAR model is viable with a 'none' type (aka no intercept)? I get different optimal lags when changing this type value from 'const' to 'none' and was curious on which one to use to select the lag. Thanks again!
@JustinEloriaga
@JustinEloriaga 4 жыл бұрын
Hi. No particular reason. It is fine if the type is none. It just means that there was no model intercept in the model which is normal in most cases.
@estaykylyshbek8347
@estaykylyshbek8347 3 жыл бұрын
Great video! Could you please explain why the results are not significant? The P-values are quite big numbers.
@sadhanasingh8983
@sadhanasingh8983 2 жыл бұрын
Sir kindly share the commands
@nadyayuniar9465
@nadyayuniar9465 3 жыл бұрын
Hello, sir. Is it for multivariate time series? If it is yes, in this video, you use acf and pacf to check stationary of the data. But in some papers, to check the stationary in multivariate time series cases, we need to check it with mccf and mpccf. Which the right one that I need to follow? Thank in advance🙏
@christopherlefevre7927
@christopherlefevre7927 4 жыл бұрын
Hi Justin, do you by any chance know what to do when I get this error after the 'summary()' : Error in solve.default(Sigma) : Lapack routine dgesv: system is exactly singular: U[5,5] = 0 ?
@JustinEloriaga
@JustinEloriaga 4 жыл бұрын
Hi! It may be that the VAR system you specified is not solvable. As a remedial measure, might I suggest getting the natural log of the variables or differencing it. This may solve the problem! Cheers!
@christopherlefevre7927
@christopherlefevre7927 4 жыл бұрын
@@JustinEloriaga Thanks for your answer, my variables are already in the form of returns though :/
@ivanartmarbas9182
@ivanartmarbas9182 4 жыл бұрын
Great video Justin! Thank you. Just need to ask, since the VAR model includes lags of the same variables, should we also check for multicollinearity? And if multicollinearity is present, how should we proceed with the estimation? Thank you!
@JustinEloriaga
@JustinEloriaga 4 жыл бұрын
Thank you for your comment. Regarding multicollinearity, yes potentially, however, the presence of multicollinearity merely inflates standard errors and doesn't necessarily lead to biased estimates. The inclusion of lags more likely induces autocorrelation which is more commonly tested for. Hope this helps, thanks!
@ivanartmarbas9182
@ivanartmarbas9182 4 жыл бұрын
@@JustinEloriaga , thank you for the reply!
@grazianodicapua7380
@grazianodicapua7380 3 жыл бұрын
Very good video! Did you do one with multivariate VAR model? Thanks
@yudistiraeltonjhon9695
@yudistiraeltonjhon9695 3 жыл бұрын
in simple graph, can I use more than 2 variables in one graph?
@JustinEloriaga
@JustinEloriaga 3 жыл бұрын
Yes, that is possible
@alisarnakour7451
@alisarnakour7451 10 ай бұрын
Hello! I really need an answer asap, did you create this data by yourself or did you get it somewhere else?
@takundachibaya8042
@takundachibaya8042 4 жыл бұрын
Thank you very much. may I have the link to the second video on forecasting and model diagnostics
@JustinEloriaga
@JustinEloriaga 4 жыл бұрын
Hi! The link is this one: kzbin.info/www/bejne/i4q1d4yNg92LasU
@conox555
@conox555 4 жыл бұрын
@@JustinEloriaga in my case it links back to this video. Did I do something wrong or is there another link? Great video BTW :)
@saradehghani1153
@saradehghani1153 4 жыл бұрын
Hi Justin thanks for sharing this helpful video. in interepretion the result of Var result we omit the insignificant variables? and How I can model the residuals of GDP in var?
@JustinEloriaga
@JustinEloriaga 4 жыл бұрын
Hi, thanks for your comment. In general, we interpret the applications of VAR (i.e. IRFs, FEVDs, and forecasts) more than the actual order and we can see their significance based on the results being significantly different from zero. In terms of modeling the residuals, I believe there are options for that. Hope this helps.
@saradehghani1153
@saradehghani1153 4 жыл бұрын
@@JustinEloriaga I appreciate your response
@IZE85
@IZE85 4 жыл бұрын
great video!
@dennismalit4395
@dennismalit4395 4 жыл бұрын
Thank you so Much. This was really helpfull.
@masoumehsolgi7974
@masoumehsolgi7974 4 жыл бұрын
hi,thank you for video,but i do not know this is my problem or it is some thing general,the screnn and codes are so much unclear and small.unfortunately i could not recognise some of them .
@JustinEloriaga
@JustinEloriaga 4 жыл бұрын
Hi! You may refer to the list of codes found in the link in the description box below. Thank you!
@masoumehsolgi7974
@masoumehsolgi7974 4 жыл бұрын
thank you so much for your reply ,there is code for SVAR but i could not find any for VAR,may i ask you check it please?
@florinaliu3979
@florinaliu3979 3 жыл бұрын
Congradulation for a wonderful explanation. My question is: if my data are non-stationary , can i perform the VAR model? Or i should tranform them first.
@bignoob1470
@bignoob1470 Жыл бұрын
no
@makotoinoue2614
@makotoinoue2614 3 жыл бұрын
Thank you sir!
@thetruthsreality
@thetruthsreality 3 жыл бұрын
Very helpful video :) thanks. Errors are shown during coding as not all the packages are included in the demo, as fpp2 and fpp3 for autoplot. (a beginner comment)
@thetruthsreality
@thetruthsreality 3 жыл бұрын
or need of packages astsa, vars, etc. Anyway it after searching the errors we could go on.... :)
@ForsakenPrayers
@ForsakenPrayers 4 жыл бұрын
Great video. Curious what IDE you're using?
@JustinEloriaga
@JustinEloriaga 4 жыл бұрын
Hi! Thanks for your comment. This is RStudio with a dark theme. Hope this helps
@ForsakenPrayers
@ForsakenPrayers 4 жыл бұрын
@@JustinEloriaga Much appreciated
@christopherlefevre7927
@christopherlefevre7927 4 жыл бұрын
Thanks a lot mate, I'm new to this and you're making it really clear ! I was wondering, how does this work if I have more than 2 variables ?
@JustinEloriaga
@JustinEloriaga 4 жыл бұрын
Just add the variable when you run the cbind command and you're good to go. Hope this helps!
@christopherlefevre7927
@christopherlefevre7927 4 жыл бұрын
Ok great !
@renatatsoi4546
@renatatsoi4546 4 жыл бұрын
Hello Justin, it's a great idea to share your knowledge and skills with us. I really appreciate it and I think other people too! And I want to ask you a question. My question is not related to this video lesson, but I try to find any information... I need to build a Time-varying VAR model (TV VAR) for my research, but I can't find information or tutorial about how to build this model. If you are familiar with TV VAR, can you send me please a link for some paper or tutorial about this model or just briefly explain to me. Thank you for your attention!
@nicolasmartinez2818
@nicolasmartinez2818 4 жыл бұрын
THANK YOU!
@apsulistiono
@apsulistiono 4 жыл бұрын
Thanks a lot!
@caiot.a.4347
@caiot.a.4347 4 жыл бұрын
I couldn't read a line. Too dark.
VAR Diagnostics in R
5:39
Justin Eloriaga
Рет қаралды 23 М.
Structural Vector Autoregression in R
18:23
Justin Eloriaga
Рет қаралды 27 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Econometrics - VAR model (construction)
18:15
Hanomics
Рет қаралды 21 М.
Coding the SARIMA Model : Time Series Talk
10:35
ritvikmath
Рет қаралды 63 М.
Econometrics - Estimating VAR model in R
55:15
Hanomics
Рет қаралды 44 М.
Vector Auto Regression : Time Series Talk
7:38
ritvikmath
Рет қаралды 131 М.
Building a Vector Error Correction Model in R
15:22
Justin Eloriaga
Рет қаралды 30 М.
Bayesian Modeling with R and Stan (Reupload)
52:47
Salt Lake City R Users Group
Рет қаралды 39 М.
Vector Autoregressions and Macroeconomic Analysis in R
13:55
Scott W. Hegerty
Рет қаралды 11 М.