Johansen Cointegration test in R Studio

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 31

  • @nalanisk3430
    @nalanisk3430 2 года назад

    I'm watching you from Turkey, and thanks for your help. Your explanation is really clear.

  • @kalipramod9101
    @kalipramod9101 6 лет назад

    Great video.. thank you very much for explaining how to test co integration.

  • @inveele
    @inveele 3 года назад

    Thanks. Quick comment on video: zooming in an out is distracting; better to leave the R screen fixed in the video.

  • @robobek
    @robobek 7 лет назад

    Thank you very much, your videos are very helpful!

  • @OutperformMP
    @OutperformMP 2 года назад

    If VAR suggest 2 or 1, which means that I should have K = 1 or 0 for the ca.jo test. But ca.jo test requires K= at least 2. What does this mean if I get a result like this? What should I do?

  • @fvc1612
    @fvc1612 2 года назад

    What if it says that there are insufficient degrees of freedom?

  • @ShamsherAlam-xs3bo
    @ShamsherAlam-xs3bo 5 лет назад

    Sir there is contradict result between r=0 and r=1, one accept null on the other hand one reject the null then on which basis we conclude that there is cointegration between variable

  • @515heleng
    @515heleng 7 лет назад +1

    Thank You soooo much!!! Your videos saved me :)

    • @SarveshwarInani
      @SarveshwarInani  7 лет назад

      Thanks a lot...

    • @515heleng
      @515heleng 7 лет назад

      Sorry! I run an ADF test and could not reject the null hypotheses. But there was no evidence of a unit root in first difference, therefore I rejected the null hypotheses.

    • @SarveshwarInani
      @SarveshwarInani  7 лет назад +1

      Since your series are I(1), you can run Johansen Cointegration.

  • @Lovelifeplease
    @Lovelifeplease 5 лет назад

    Thank you

  • @eliottabet1889
    @eliottabet1889 6 лет назад

    what do you think about using the ndiffs function on both time series to make sure not only that each serie is not stationary, but also that the two series have the same order of non stationarity ?

  • @stephanies4267
    @stephanies4267 7 лет назад

    Thanks a lot!

  • @cemalyildirim4529
    @cemalyildirim4529 4 года назад +1

    is there a way to test with 1 lag? in R, you have to use minimum 2 lags, but I want to use 1 lag

    • @rizka_khr
      @rizka_khr 4 года назад +1

      can someone answer this? cause i have to try it in lag 1. my optimal lag is 1

    • @OutperformMP
      @OutperformMP 2 года назад

      @@rizka_khr Same

  • @masoumehsolgi7974
    @masoumehsolgi7974 4 года назад

    hi, thank you for video
    if i tested model and for r=0 i can not reject the null hypothesis but for r

  • @abbassalimi5600
    @abbassalimi5600 6 лет назад

    thanks friend

  • @loubnina
    @loubnina 7 лет назад

    Thank you for the video, but pliz why did you take the number of lag.max =10 ???

  • @ShamsherAlam-xs3bo
    @ShamsherAlam-xs3bo 5 лет назад

    Sir please make me clear this concept. Hope soon

  • @bibekban2516
    @bibekban2516 6 лет назад

    I get the following error while doing cointegration test:
    Warning message:
    In chol.default(SKK, pivot = TRUE) :
    the matrix is either rank-deficient or indefinite
    do anybody knows how to solve the problem

  • @katherinhuang5635
    @katherinhuang5635 5 лет назад

    Thank you! I have a question : I have tested 10 variables, there the first one is the one I want to regress later. The Johansen test tells me that there are 2 cointegrated variables. How do I find out which variables these are?

    • @djanmhood
      @djanmhood 5 лет назад +1

      Hi Katherin, prehaps this reply is a bit too late and you probably figured it out by yourself. Anyway, in my understanding the Johansen test gives you 2 cointegrating relations and not 2 cointegrated variables. It tells you that among the variables you have, there exsit 2 cointegrating relationship. To see those, you can type summary(ca.jo(...)) or as the example given here summary(cointest), and if you do what to see the coefficients, you can type cointest@V . Hope it helps you or anyone else seeing this.

  • @lauranomdedeuortiz275
    @lauranomdedeuortiz275 7 лет назад

    What should I do if my data is stationary? How can I convert it to non-stationary?
    Thanks a lot for you videos :)

    • @lauranomdedeuortiz275
      @lauranomdedeuortiz275 7 лет назад

      To convert non stationy series in stationary, we use diff(), as I have read thatv the opposite function is cumsum(). When applying cumsum() to my stationary data, data is no stationary anymore. Does this make sense?

    • @dumarvargas1467
      @dumarvargas1467 6 лет назад +1

      Hi, I think that no make sense, because when the series are not stacionaries they cant be cointegrated, it is a rule. It´s because cointegrated series share a common trend, stacionaries seires doesn't have a trend, so you cant use a Johansen model. In that case its better to use a simple VAR.

    • @azharulislam4975
      @azharulislam4975 2 года назад

      @@dumarvargas1467 Hi , your comment helped me to make a decision about choosing Johansen Cointegration or simple VAR. Thank you for sharing this knowledge in 3 years before, but it's helping me now. Can you tell me please how I can check whether my data is stationary or non-stationary data ?

  • @perefusterescriva1510
    @perefusterescriva1510 5 лет назад

    Why don’t you upload the bloody script?