Announcement

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

  • Originally posted by Abdul Rauf View Post
    sebastian I tried this link net from "http://www.kripfganz.de/stata/" in my STATA-14 but i could not run it. what should i do???
    This can happen if you do not have full administrator rights on your PC or if there are some restrictions to Internet access. I have sent you a private message here on Statalist.
    https://www.kripfganz.de/stata/

    Comment


    • Dear Sebastian Kripfganz ,

      I use the ardl bounds testing to get the determinants of investment in Senegal. When I use the ardl model to obtain the optimal lag, I have all of my regressors coefficients that are not significant. My dependant variable is TS and after reading Pesaran (2001) I think I fall in a degenerate case. Can I continue to use the Pesaran approch?

      Comment


      • Originally posted by Babacar Mbengue View Post
        I use the ardl bounds testing to get the determinants of investment in Senegal. When I use the ardl model to obtain the optimal lag, I have all of my regressors coefficients that are not significant. My dependant variable is TS and after reading Pesaran (2001) I think I fall in a degenerate case. Can I continue to use the Pesaran approch?
        I am not sure I understand your question. What do you mean by the "Pesaran approach" and what do you want to achieve? In other words, what is it that you want to test? If all of your regressors are statistically insignificant, then you already know that there does not exist a long-run relationship between them and your dependent variable.
        https://www.kripfganz.de/stata/

        Comment


        • Sebastian Kripfganz
          I am not sure I understand your question. What do you mean by the "Pesaran approach" and what do you want to achieve? In other words, what is it that you want to test? If all of your regressors are statistically insignificant, then you already know that there does not exist a long-run relationship between them and your dependent variable.
          Sorry, I have some difficulties with the English
          I want to use the Pesaran approch of cointegration to determine which variables can affect the private investment. After recent estimation, I find that my lagged dependant variable have a positive sign. According to your previews posts, you said that this coefficient must be in [-1 ; 0]. That's why I asked if I could use the ARDL bounds testing. This is the result I found
          Click image for larger version

Name:	res1.png
Views:	1
Size:	55.1 KB
ID:	1362690

          Click image for larger version

Name:	res2.png
Views:	1
Size:	55.0 KB
ID:	1362691

          Click image for larger version

Name:	res3.png
Views:	1
Size:	11.7 KB
ID:	1362692
          ​​​​​​​
          Last edited by Babacar Mbengue; 02 Nov 2016, 14:26.

          Comment


          • A speed-of-adjustment coefficient of about 7 is a clear sign that something is wrong as this would indicate a very explosive process. Unfortunately, it is not possible to identify the reason for this result based on the estimates alone. It might be that the ARDL model is just not suited to fit your data. Do you have any structural breaks in your time series? As a first step towards identifying the problem, you might want to visually compare the fitted values from the regression in levels (without the ec option) with the original data, e.g.:
            Code:
            ardl lfbcf_priv ltxx lfbcf_pub lide ldebt_ext ldef_fbcf_priv, lags(4 4 3 4 4 4) trendvar(timevar)
            predict fit, xb
            twoway (tsline lfbcf_priv) (tsline fit)
            https://www.kripfganz.de/stata/

            Comment


            • Sebastian Kripfganz
              A speed-of-adjustment coefficient of about 7 is a clear sign that something is wrong as this would indicate a very explosive process. Unfortunately, it is not possible to identify the reason for this result based on the estimates alone. It might be that the ARDL model is just not suited to fit your data. Do you have any structural breaks in your time series? As a first step towards identifying the problem, you might want to visually compare the fitted values from the regression in levels (without the ec option) with the original data, e.g.:
              Code:
              ardl lfbcf_priv ltxx lfbcf_pub lide ldebt_ext ldef_fbcf_priv, lags(4 4 3 4 4 4) trendvar(timevar) predict fit, xb twoway (tsline lfbcf_priv) (tsline fit)
              Good morning, I run the code above, and that is the result I have
              Click image for larger version

Name:	Graph1.png
Views:	1
Size:	25.5 KB
ID:	1362771


              I check also for the Heteroskedasticity of the ardl model and the test of Breusch-Pagan / Cook-Weisberg reports the presence of Heteroskedasticity

              estat hettest

              Breusch-Pagan / Cook-Weisberg test for heteroskedasticity

              Ho: Constant variance

              Variables: fitted values of lfbcf_priv


              chi2(1) = 5.33

              Prob > chi2 = 0.0209



              That might be the source of the biaised coefficient?
              A another question, how can I apply the test of chow in the ARDL model?
              Last edited by Babacar Mbengue; 03 Nov 2016, 08:50.

              Comment


              • I should have spotted this earlier: You have only 32 observations in total but try to estimate 30 parameters. That cannot work! You definitely need to considerably reduce your model: less variables and/or shorter lags.
                Last edited by Sebastian Kripfganz; 03 Nov 2016, 08:22.
                https://www.kripfganz.de/stata/

                Comment


                • Sebastian Kripfganz

                  There was a devalution in 1994 in Senegal, so I do the test of chow like this
                  Code:
                  gen d=(year>1994)
                  gen x1=d*ltxx
                  gen x2=d*lfbcf_pub
                  gen x3=d*lide
                  gen x4=d*ldebt_ext
                  gen x5=d*ldef_fbcf_priv
                  reg lfbcf_priv d ltxx lfbcf_pub lide ldebt_ext ldef_fbcf_priv x1 x2 x3 x4 x5, r
                  Click image for larger version

Name:	res4.png
Views:	1
Size:	18.2 KB
ID:	1362776

                  Code:
                   test d x1 x2 x3 x4 x5
                  HTML Code:
                       . test d x1 x2 x3 x4 x5
                  ( 1) d = 0
                  ( 2) x1 = 0
                  ( 3) x2 = 0
                  ( 4) x3 = 0
                  ( 5) x4 = 0
                  ( 6) x5 = 0  
                  F( 6, 24) = 5.18 Prob > F = 0.0015 .
                  end of do-file    
                  I don't Know if I will have the same result with the ardl command
                  Last edited by Babacar Mbengue; 03 Nov 2016, 09:19.

                  Comment


                  • Thanks Sebastian Kripfganz ! it's working now. I run the estat btest command and I have the result below :

                    Click image for larger version

Name:	res4.png
Views:	1
Size:	16.5 KB
ID:	1362802

                    Now I worried about the t-statistic. In fact, according to Pesaran & al.(2001), the t-statistic test for a specific case of the Pesaran bounds test. I don't Know how to interprete the result.

                    -Should I use the t-statistic to test a degenerate case ( ie when , in the conditional ECM, the coefficient of the lagged dependant variable is not significant and the coefficients of lagged regressors are significant, or when all coefficient of lagged regressors are not significant and that one of the lagged dependant variable is significant)?

                    Comment


                    • Did you reduce the number of your estimated coefficients to get a meaningful estimate of the speed-of-adjustment coefficient in the [-1, 0] range? The t-statistic from your last output seems to be the same as the t-statistic of the speed-of-adjustment coefficient from your earlier regression output.

                      Please also have a look at my presentation at this year's Stata Conference, in particular slide 10.

                      You would first compare the F-statistic to its critical values. In your example, you clearly reject the null hypothesis of no level relationship at all significance levels. In the next step, you use the t-statistic to test the null hypothesis that the speed-of-adjustment coefficient is equal to zero. Again, in your example you reject this null hypothesis. Overall, you thus conclude that a long-run level relationship exists if in addition at least one of the regressors has a statistically significant long-run coefficient. If all of them are insignificant, then your dependent variable is purely I(0).

                      Note that you can use the p-values for your long-run coefficients directly from the regression output to decide about their statistical significance. On the other side, you cannot use the p-value from the regression output for the speed-of-adjustment coefficient. For the latter, you have to use the critical values from the bounds test.
                      https://www.kripfganz.de/stata/

                      Comment


                      • Sebastian Kripfganz

                        Yes, I reduce the number of lags of my independant variables. I think, I understand now cleary the bounds test. But In my example I have t > critical value for I(0) regressors according to the output I should accept the null hypothesis. Thanks for your prompt answers. I write a memory for a graduates, can I cite you in my document. Other thing, can we do the test of stability of the model (Inverse root AR/MA polynomials)?
                        Last edited by Babacar Mbengue; 03 Nov 2016, 13:44.

                        Comment


                        • Sorry, my fault. Indeed, your t-statistic is larger than the critical value. But the reason is once again that the speed-of-adjustment coefficient exceeds zero. The t-test is designed for a one-sided hypothesis test based on the assumption that the speed-of-adjustment coefficient falls into the range [-1, 0]. Under the null hypothesis, it is zero. Under the alternative hypothesis, it is negative. It does not make sense to apply the bounds test to the t-statistic if the latter has a positive sign. The model is simply misspecified and/or poorly estimated.
                          https://www.kripfganz.de/stata/

                          Comment


                          • Hi,
                            can anybody help me...

                            How can I go about doing a granger-causality test for an ARDL model given that my model is:

                            Code:
                            ardl lnY lnN lnL lnT, trendvar(YR) lags(2 1 1 0) ec1 exog(DumP) regstore(ec1aic1)
                            specifically, what is the code for it? as vargranger only allows granger after VAR models.

                            Also, Pesaran does the bounds testing on an conditional ECM which has unrestricted coefficients, But In stata the bounds testing only works when option ec or ec1 is enabled wouldn't this make the coefficients restricted? And are there any postestimation techniques that can be used like bgodfrey dwatson etc?
                            Much appreciated
                            Last edited by Pandi Sarr; 03 Nov 2016, 22:16.

                            Comment


                            • The ardl command is not directly suitable for Granger causality tests because it includes the regressors not only lagged but also contemporaneously. Given that you have a multivariate model, I do not see what would be wrong with vargranger.

                              The options ec and ec1 for ardl only affect the way how the coefficient estimates are displayed, namely in the error-correction representation. No restrictions are imposed by specifying either of these options. To impose an restricted intercept or time trends, you need to use the option called restricted.

                              For postestimation commands such as bgodfrey or dwatson, you need to store the estimation results with the regstore() option, as you have done in your example. You can then recover the underlying regress estimates and use all available regress postestimation commands, e.g.
                              Code:
                              ardl lnY lnN lnL lnT, trendvar(YR) lags(2 1 1 0) ec1 exog(DumP) regstore(ec1aic1)
                              estimates restore ec1aic1
                              estat bgodfrey
                              estat dwatson
                              https://www.kripfganz.de/stata/

                              Comment


                              • Sebastian Kripfganz
                                Thanks for your quick response!
                                So if I use ARDL and change the dependent variable and run it 4 times for each variable that I have, it wouldn't yield results with sufficient evidence against a long run relationship? (given that the ardl bounds test fails to reject the null?)

                                Also i find that the ARDL coefficients of the following models vary even though they present the same number of lags, their corresponding bounds test also present different results
                                :
                                Code:
                                ardl lnY lnN lnL lnT, trendvar(YR) aic maxlags(2) ec1 exog(DumP) regstore(ec1aic2)
                                ​​​​​​​ardl lnY lnN lnL lnT, trendvar(YR) aic maxlags(2 1 1 0) ec1 exog(DumP) regstore(ec1aic1)

                                Comment

                                Working...
                                X