VAR Diagnostics in R

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • This video is a continuation of the last video and discusses how to diagnose and check for robustness in a VAR model. This goes through tests for serial correlation, heteroscedasticity, normality, and stability.
    Playlist link: • VAR in R
    Created by Justin S. Eloriaga

КОМЕНТАРІ • 35

  • @juancorderoromero6610
    @juancorderoromero6610 2 роки тому

    Thank You for these videos, Justin. They are helping me a lot!

  • @eliecerzbaez5582
    @eliecerzbaez5582 4 роки тому +6

    Yo Cheers for the video Justin! however i have a question about the tests, how do you choose the lags.pt and lags.multi to be 12? does it depend on the original var() estimation ? Thanks in advance and keep it up with your videos

    • @JustinEloriaga
      @JustinEloriaga  4 роки тому +7

      Hi! Regarding choosing the number of lags.pt, you can specify any number of lags you'd like to test for. I just chose 12 as this was the most 'default' order used. However, you may opt to match the lag length selected or go above it. In practice, we typically choose a higher lags.pt or lags.multi over the lag order we ended up using. Hope this helps!

  • @AyodhyaSovis
    @AyodhyaSovis Рік тому

    Hey Justin, I really enjoy your videos and learnt a lot from them. I do have a small question as well. Why did you take "OLS CUSUM" in stability test?

  • @fvc1612
    @fvc1612 3 роки тому +2

    How could I know hoy many lags should I use in the serial correlation test?

  • @ninametzler6320
    @ninametzler6320 9 місяців тому

    Thank you so much for the great videos, they really helped me a lot! Could elaborate a little more on the stability test? What it exactly does it calculate? Thanks in advance :)

  • @Amir-ln5qm
    @Amir-ln5qm 2 роки тому +1

    great Video. thank you so much for excellent explenation
    i was wondering what can we do if we failed the tests
    what if our data has serial correlation, heteroskedasticity or non normality ? how can we fix it ? is there a video about that ?
    thank you

  • @obiomaasuzu5469
    @obiomaasuzu5469 Рік тому

    Thank you for your videos. Do you have any videos that show how to perform Threshold VARs and to derive the GIRFs?

  • @62294838
    @62294838 3 роки тому +2

    Hi, Can you do a series of what to do if all the diagnostic test fails? Thanks!

  • @christopherlefevre7927
    @christopherlefevre7927 4 роки тому +2

    Hi again ! So I now completed this video with my data (and already started the next one, it's insane how clear you are compared to other youtubers btw) and it appears all the diagnostic tests failed (p-value < 0,05 each time).
    Does this mean the results I'll get for the applications in the next video will have no meaning ? And is there anything I could do about this ? Thanks !!

    • @JustinEloriaga
      @JustinEloriaga  4 роки тому

      Hi! Maybe you could try to take the log of some variables or maybe add a few more controls. You can still be able to do the results of the one in the next video but yes, the accuracy will be called into question since the diagnostics failed. Best of luck!

    • @christopherlefevre7927
      @christopherlefevre7927 4 роки тому

      Ok thanks mate !

  • @saimarashid5387
    @saimarashid5387 3 роки тому +1

    Hi ...sir I have 6 variables can O use VAR at a time on it?

  • @callingwind5071
    @callingwind5071 3 роки тому

    Hi Justin, great video!! Thanks for that. I got a message trying to do some stability testing. "Could not find function stability?" Any solution on that?

  • @mashalsuchwani5605
    @mashalsuchwani5605 4 роки тому +1

    Really appreciate both the videos.. Can you tell me if there is completely no significance in Var result lags, how does it affect the model?

    • @JustinEloriaga
      @JustinEloriaga  4 роки тому +1

      Hi, I would suggest to try and maybe transform the variables first through the use natural log, log difference, or difference. For the significance, you may want to look at the IRFs too, as even if the VAR coefficients may be insignificant, something may be concluded from the IRFs.

    • @mashalsuchwani5605
      @mashalsuchwani5605 4 роки тому

      @@JustinEloriaga Thanks for your response, really appreciated. Can you tell me if I can run RMSE , MAE and MAPE in VAR?

    • @JustinEloriaga
      @JustinEloriaga  4 роки тому

      @@mashalsuchwani5605 yes, i think you can use the accuracy function

  • @andredragosch2716
    @andredragosch2716 3 роки тому

    Hi Justin, I really like your videos. Great as always! I was wondering whether there is a possibility to conduct a ramsey RESET test in vars or any other kind of omitted variables test? Thanks in advance for a short reply! Best, André

  • @kanikabagree1084
    @kanikabagree1084 3 роки тому

    Hi! Justin thankyou so much for your videos I have a doubt for estimating VAR don't we require the series to be stationary ? Here when you plotted the two series they were clearly non stationary , can you please help me out with it?

  • @thetiskyeffect
    @thetiskyeffect 4 роки тому +1

    Hi Justin,
    These videos are amazing! I have enjoyed following you step by step. I have a question though, how do I add moderating variables to my model. Say in addition to the "Unemployment" and "GDP" above, I wanted to add two moderating variables "Consumer Price Index" and "Exchange Rate", how may I do this. Looking forward to your response. Thank you, Justin.
    /Feyi

    • @JustinEloriaga
      @JustinEloriaga  4 роки тому

      Feyitimi Anthony Hi Feyi! Merely add them as variables by adding both of these when you bind the variables using cbind(). Just be sure to also declare both variables as a time series variable and you should be good to go. Hope this helps.

  • @muhammadumararshad2467
    @muhammadumararshad2467 Рік тому

    hi sir i my variables are non stationary im making stationary I(1) by using ADF test differencing estimate var model with difference series now Rseq is very low and digonostic checking are faild non normal residuals hetrocesdesticity ans serial correlation now i do kindly response to me ????

  • @thetruthsreality
    @thetruthsreality 3 роки тому

    Dear Justin, when executing the code of ARCH appears: Error in solve.default(omega0) :
    system is computationally singular: reciprocal condition number = 6.32316e-18.
    I searched in google but there is no answer on omega0! Thanks in advance

  • @usheezsaraswat3340
    @usheezsaraswat3340 3 роки тому

    What is the stability test for VECM?

  • @ShahadatHossain-ce7kr
    @ShahadatHossain-ce7kr 4 роки тому

    Excellent video. Could you please add the sequential video links in the description so that one can follow and use the links? Thanks.

    • @JustinEloriaga
      @JustinEloriaga  4 роки тому +1

      The link to the playlist is here: ua-cam.com/play/PLEuzmtv9IuT88IrQDHqz100twn85HxWfV.html

    • @ShahadatHossain-ce7kr
      @ShahadatHossain-ce7kr 4 роки тому

      @@JustinEloriaga Thanks.

  • @masoumehsolgi7974
    @masoumehsolgi7974 4 роки тому

    hi,
    thank you for video,i run the model VAR,but the test for Correlation and Hetrochdasticity both reject in my model and my model suffer from both ,now what could i do for solving the problem?thank you in advance.

    • @JustinEloriaga
      @JustinEloriaga  4 роки тому

      Hello, thank you for your comment. Maybe consider taking the natural log or the differenced value of your variables. This might alleviate the problem

  • @yudistiraeltonjhon9695
    @yudistiraeltonjhon9695 4 роки тому

    How I do correlation analysis in VAR model?

  • @eniolaolaniran656
    @eniolaolaniran656 4 роки тому

    If stability test fails what is the implication

    • @EvsEntps
      @EvsEntps 2 роки тому

      Stability is a univariate time series concept that is a stronger condition than stationarity. If a time series is stable then it is also stationary (vice versa is not necessarily true). Naturally, stability can be considered in a multivariate time series model. The simple implication is: if your model is unstable then one or more of the time series within your model is non-stationary, i.e. one or more time series in your model was generated by a process with unit roots. The simplest way to tackle this problem is to find out which one(s) are non-stationary and difference them and test for stability once more and hope that you rectify it. Theoretically, it's not necessarily going to work, but in reality, almost all time series we use are well-behaved, so treating stability as equivalent to stationarity and using differencing will likely fix the non-stationarity and instability problem. To understand stability at a basic level: if the innovations (error shocks) of your time series have a permanent effect on the future value then your series is unstable, whereas if they decay to zero over time then you have stability.
      There is a unique situation of having instability with stationarity - it's a weird theoretical situation that requires having a time series that goes infinitely into the past: it's abstract and not really something you're going to deal with real life data, so just treat stability and stationarity conditions as equivalent for practical purposes.