Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    Hi to all,

    I am also using the ARDL in my model. So I used the varsoc variable to determine the optimum lag for my variables, than I used the ADF to test whether my variables have a unit root or not and also I used the Zivot-Andrews test for structural breaks. Now I am struggling with the ardl itself. Can someone advise how to do the ardl? I used:

    regress GDPD1 L1.GDPD1 L1.OPEN INF L1.POP L1.ED FDI L1.GOV L1.OPEND1 INFD1 L1.POPD1 L1.EDD1 FDID1 L1.GOVD1

    and

    ardl GDPD1 OPEND1 INFD1 POPD1 EDD1 FDID1 GOVD1, lags(1)

    but for some reason when I add the variables at level and first difference it says to me that the variables are correlated and ardl cannot be completed.

    I also conducted the Wald -test :

    test _b[L1.OPEN]= _b[L1.INF] = _b[L1.POP]= _b[L1.ED]= _b[L1.FDI]= _b[L1.GOV] = 0

    Any help will be appreciated and I can provide more details of my analysis if needed.

    Thanks
    Viki

    Comment


    • #47
      Is there a way of solving the omitted variables bias in stata for ARDL models?

      Comment


      • #48
        The ardl command cannot handle instrumental variables, if that is what you had in mind.
        https://www.kripfganz.de/stata/

        Comment


        • #49
          Hello everybody,

          I've just learned the ARDL model so maybe I miss something.
          I estimate first an ARDL with variable of interest in level and then the ARDL in difference.


          Code:
          . ardl lny lnx
          
          ARDL regression
          Model: level
          
          Sample:       1963 -       2011
          Number of obs  = 49
          Log likelihood = 109.9019
          R-squared      = .98733233
          Adj R-squared  = .98648782
          Root MSE       = .02680262
          
          ------------------------------------------------------------------------------
                   lny |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
          -------------+----------------------------------------------------------------
                   lny |
                   L1. |    .278142   .1371756     2.03   0.049     .0018561    .5544278
                   L2. |   .3199927   .1265193     2.53   0.015     .0651699    .5748156
                       |
                   lnx |   .0633735   .0198776     3.19   0.003     .0233379    .1034091
                 _cons |   1.806711   .5328952     3.39   0.001     .7334054    2.880017
          ------------------------------------------------------------------------------
          So my ARDL in level can be written y_t=mu + g_1 y_{t-1} + g_2 y_{t-2} + b_1 x_t + eps_t
          Manipulating a bit this equation, I am able to write the ARDL in ECM form :

          D.y_t = mu + (g_1-1+g_2) * [y_{t-1} - (b_1 x_{t-1})/(-g_1+1-g_2)] + b_1 D.x_t - g_2 LD.y_t


          The term in bracket being the LR term.
          So I expect to find :
          - for the adjustment parameter : (g_1-1+g_2) so around 0.278-1+0.320=-.402
          - for the coefficient of x_{t-1} of the LR term : b_1 /(-g_1+1-g_2) so around .157
          - for the coefficient of LD.y_t of the SR part : - g_2 so -0.31999
          - for the coefficient of D.x_t of the SR part : b_1 so around 0.063


          Code:
          . ardl lny lnx, ec
          
          ARDL regression
          Model: ec
          
          Sample:       1963 -       2011
          Number of obs  = 49
          Log likelihood = 109.9019
          R-squared      = .38612047
          Adj R-squared  = .34519517
          Root MSE       = .02680262
          
          ------------------------------------------------------------------------------
                 D.lny |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
          -------------+----------------------------------------------------------------
          ADJ          |
                   lny |
                   L1. |  -.4018653   .1205984    -3.33   0.002     -.644763   -.1589675
          -------------+----------------------------------------------------------------
          LR           |
                   lnx |   .1576984   .0070317    22.43   0.000     .1435359     .171861
          -------------+----------------------------------------------------------------
          SR           |
                   lny |
                   LD. |  -.3199927   .1265193    -2.53   0.015    -.5748156   -.0651699
                       |
                 _cons |   1.806711   .5328952     3.39   0.001     .7334054    2.880017
          ------------------------------------------------------------------------------
          So I find what I expect, except for the
          coefficient of D.x_t of the SR part which doesn' appear in this estimation. And I don't understand why.
          Could anyone help me?

          thank you very much.

          Comment


          • #50
            Hi Valérie,

            In your second specification, lnx appears in the long-run relationship in period t instead of period t-1. The long-run coefficient is not affected by the timing of the regressors in the long-run relationship. However, the short-run coefficients are affected. For a detailed discussion about this issue please have a look at the Stata help file of the ardl command, in particular the remarks section "Long-run coefficients expressed in time t or t-1".
            https://www.kripfganz.de/stata/

            Comment


            • #51
              Thank you for your answer Sebastian.
              I carefully read the help of the ardl command but maybe didn't get everything. In the section you mentionned, your model (ECF0) is written as
              dy(t) = c - (1 - a_1) * [y(t-1) - (b_0 + b_1) / (1 - a_1) * x(t) ] - b_1 * dx(t) + e(t)
              and so there is a dx(t) term in th SR part, isn't it?

              Comment


              • #52
                There would be such a term in the SR part if there was at least one lag of that regressor in the model in levels. In your case, there lnx appears only contemporaneously without any lag. Essentially, we have \(b_1 = 0\).
                https://www.kripfganz.de/stata/

                Comment


                • #53
                  Hi Sebastian, I understand your argument but writting the ECM ARDL from the basic ARDL give me a specification with dx(t) :
                  Click image for larger version

Name:	FormulaBasicToECM.JPG
Views:	1
Size:	32.2 KB
ID:	1312290


                  So I have the D.x_t term.
                  Where am I wrong?
                  Moreover I read a published paper having only x_t (no lag) in the basic ARDL and a D.x_t term in the conditional ECM ARDL.
                  Again, thank you for your help.

                  Comment


                  • #54
                    There is nothing wrong with your derivation of the ECM. All I am saying is that there are two different ways how we can formulate the long-run relationship in the ECM. Take your last line and notice that
                    \[(\gamma_1 - 1 + \gamma_2) \left( - \frac{\beta_1}{1 - \gamma_1 - \gamma_2} \ln x_{t-1} \right) + \beta_1 \Delta \ln x_t = \beta_1 \ln x_{t-1} + \beta_1 \Delta \ln x_t = \beta_1 \ln x_t = (\gamma_1 - 1 + \gamma_2) \left( - \frac{\beta_1}{1 - \gamma_1 - \gamma_2} \ln x_t \right)\]

                    This shows that you can rewrite this model equivalently with having \(\ln x_t\) instead of \(\ln x_{t-1}\) in the long-run relationship. In the latter case, the corresponding short-run component disappears. This is how the ardl command estimates the ECM by default.
                    https://www.kripfganz.de/stata/

                    Comment


                    • #55
                      Thank you Sebastian. I agree with your now and I'm ok theoretically!
                      Empirically, no problem to obtain your specification (with lnx_t in the LR part), it corresponds to results posted earlier.

                      Code:
                      . ardl lny lnx, ec
                      
                      ARDL regression
                      Model: ec
                      
                      Sample:       1963 -       2011
                      Number of obs  = 49
                      Log likelihood = 109.90187
                      R-squared      = .38612073
                      Adj R-squared  = .34519545
                      Root MSE       = .02680264
                      
                      ------------------------------------------------------------------------------
                             D.lny |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
                      -------------+----------------------------------------------------------------
                      ADJ          |
                               lny |
                               L1. |  -.4018656   .1205985    -3.33   0.002    -.6447635   -.1589677
                      -------------+----------------------------------------------------------------
                      LR           |
                               lnx |   .1576984   .0070317    22.43   0.000     .1435359     .171861
                      -------------+----------------------------------------------------------------
                      SR           |
                               lny |
                               LD. |  -.3199929   .1265193    -2.53   0.015    -.5748158   -.0651701
                                   |
                             _cons |   1.806713   .5328956     3.39   0.001     .7334061     2.88002
                      ------------------------------------------------------------------------------

                      But I still wonder how to obtain the other specification (with ln_x(t-1) in the LR part). I tried the minlag1 option of ardl but I don't succeed to obtain all expected coefficients :

                      Code:
                      eststo ECminlag1 :  ardl lny lnx, ec minlag1
                      eststo ECminlag1_lag2 :  ardl lny lnx, ec minlag1 lags(2 .)
                      eststo ECminlag1_lags21 :  ardl lny lnx, ec minlag1 lags(2 1)
                      
                      . esttab ECminlag1  ECminlag1_lag2  ECminlag1_lags21
                      
                      ------------------------------------------------------------
                                            (1)             (2)             (3)   
                                          D.lny           D.lny           D.lny   
                      ------------------------------------------------------------
                      ADJ                                                         
                      L.lny              -0.703***       -0.562***       -0.472**
                                        (-5.15)         (-3.66)         (-3.39)   
                      ------------------------------------------------------------
                      LR                                                          
                      L.lnx               0.155***        0.154***        0.157***
                                        (35.66)         (28.87)         (27.22)   
                      ------------------------------------------------------------
                      SR                                                          
                      D.lnx              -0.254          -0.175         -0.0708   
                                        (-1.77)         (-1.19)         (-0.57)   
                      
                      LD.lny                             -0.245          -0.320**
                                                        (-1.85)         (-2.72)   
                      
                      _cons               3.181***        2.548***        2.134**
                                         (5.16)          (3.69)          (3.42)   
                      ------------------------------------------------------------
                      N                      49              49              51   
                      ------------------------------------------------------------
                      t statistics in parentheses
                      * p<0.05, ** p<0.01, *** p<0.001
                      The third estimation (ECminlag1_lags21) is the closest but with a different adjustment parameter (-0.472 instead of -0.402) and a very different D.lnx (-0.0708 instead of 0.063).

                      I suspect maybe automatic optimal lag selection to be source of differences but I'm still puzzled not to be able to find consistent coefficients in line with the ARDL in level.

                      Comment


                      • #56
                        The probably unsatisfactory answer is: With the current version of ardl you cannot obtain an ECM specification with \(x_{t-1}\) in the long-run relationship if you have only zero lags of this regressor in the levels equation. With the option minlag1, the ardl command enforces to have at least one lag of each regressor which, however, might not be the optimal lag number.

                        See again the help file:
                        You can estimate (ECF0) using option ec and (ECF1) using the option combination ec and minlag1. Note that (ECF0) and (ECF1) feature identical coefficient expressions in the long-run relationship. Despite this fact, you may get different results for the long-run coefficients for (ECF0) and (ECF1) if you use automatic optimal lag selection. This is because option minlag1 will enforce that all regressors have at least one lag. Since ardl does not require a minimum regressor lag of 1 for (ECF0) but it does for (ECF1), the results will differ if the optimal lag for at least one regressor in (ECF0) is zero. If you want to consider models that have or that potentially have zero lag regressors, use option ec to estimate (ECF0).

                        Note that it is possible to estimate a model with zero lag regressors and express it in (ECF1). The resulting covariance matrix of the estimates, however, would be singular. Since this is an awkward result, this feature is not currently implemented in ardl.
                        The reason for your empirical differences is precisely that in your first specification the regressor lnx enters with zero lags into the levels equation (automatically chosen optimal lag order by selection criteria), while in your second specification this regressors enters with one lag into the levels equation (which is not optimal according to the selection criteria).
                        Last edited by Sebastian Kripfganz; 08 Oct 2015, 03:38.
                        https://www.kripfganz.de/stata/

                        Comment


                        • #57
                          OK, thanks again. Do you plan to allow an ECM specification with x(t-1) in the LR relationship with a only zero lag of this regressor in the levels equation in a next version of ardl?

                          Comment


                          • #58
                            This is already on our list for potential future improvements but I cannot make a promise that (or when) we will eventually implement it.
                            https://www.kripfganz.de/stata/

                            Comment


                            • #59
                              Hi everyone. I've estimated an ARDL model and when I assessed the ecm(-1), the value I hot was more than 2 ! Does anybody knows what's the problem?

                              Comment


                              • #60
                                Hello!

                                Regarding the bounds testing of the ARDL Model I have the following issue:

                                The critical values of the bounds provided by the lists of Pesaran, Shin and Smith (2001) and also by the syntax fbounds(casenum) are based on stochastic simulations using T=1000 and 40.000 replications (Pesaran et al. 2001, p.301). Narayan and Smyth (2004, p. 2082-2083) however calculate critical bound values based on a smaller T, which are different to the values of Pesaran et al. (2001).

                                My question is if it is possible to calculate also bounds with Stata using a smaller T OR what kind o f limitation arises using the values provided by Pesaran et al. (2001).

                                I am thankful for any help.


                                Pesaran, M. H., Shin, Y. and Smith, R. J. (2001) Bounds testing approaches to the analysis of level relationships. Journal of Applied Econometrics, 16, 289–326.

                                Paresh Kumar Narayan and Russell Smyth (2004) Crime rates, male youth unemployment and real income in Australia: evidence from Granger causality tests, Applied Economics, 36:18, 2079-2095.

                                Comment

                                Working...
                                X