Announcement

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

  • Command for Wald Test in GMM

    Dear Memebers,

    I am running two-step sys-GMM, and my Stata (12.1 SE) command is given below.
    Code:
    xtabond2 y L.y x1 x2 x3 x4 x5 x6 x7 i.Year Dummy_Industry, gmm(L.y, lag(2 3) coll) gmm(x1 x2 x3 x4 x5 x6 x7, lag (1 1)) iv(i.Year Dummy_Industry, eq(diff|level)) ortho robust two small
    I have two questions in this regard:
    (1) How can I get the results of Wald test for my regressors and also for i.Year separately?
    (2) If I find that the Wald test result of my regressors (apart from i.Year) is significant while the test result of i.Year is insignificant, will that question my model?
    Please note, the p-values of AR(2) and Hansen J Statistic are 0.124 and 0.458 respectively; Difference-in-Hansen tests of exogeneity is 0.705.

    Thanks in anticipation

    Tariqul
    Last edited by Tariqul Islam; 16 Mar 2019, 12:00.

  • #2
    (1)
    Code:
    testparm x1 x2 x3 x4 x5 x6 x7
    testparm i.Year
    (2)
    If the Wald test for the time dummies does not reject the null hypothesis of joint insignificance, you may exclude the time dummies from the model (provided that this does not adversely affect the other specification tests). You can still keep them to be on the safe side. The risk of model misspecification is higher when you exclude variables.

    As an aside: There is a bug in xtabond2 that produces incorrect degrees of freedom for the overidentification tests (Sargan-Hansen) if time dummies are specified with the factor-variable notation and some of them are displayed as omitted (or empty) in the regression output. This implies that the corresponding p-values are incorrect and the test results are invalid. To avoid this problem, you need to specify all the time dummies separately and ensure that none of them get omitted. Alternatively, you can use my xtdpdgmm command:
    XTDPDGMM: new Stata command for efficient GMM estimation of linear (dynamic) panel models with nonlinear moment conditions
    https://twitter.com/Kripfganz

    Comment


    • #3
      Dear Sebastian,

      Thanks for your kind reply.

      I have used the Years as Year1, Year2..., Year10, but the wald test statistic remains insignificant. I don't know whether I should start a new post. However, I just want ask you a couple of queries relating to my command. In fact, I am confused about the command of sys-GMM. It may be a problem of my code. A couple of alternatives that I tried:
      Code:
      xtabond2 y L.y x1 x2 x3 x4 i.Year i.Industry, gmm(L.y, lag(2 3) coll) gmm(x1 x2 x3 x4, lag (1 1)) iv(i.Year i.Industry, eq(level)) ortho robust two small
      I have found many to use commands like above. Or, should I use the follwoing one?
      The following one is correct?
      Code:
      xtabond2 y l.y x1 x2 x3 x4 i.Year i.Industry, gmm(l.y x1 x2 x3 x4, eq(diff) lag(1 2)) gmm(l.y x1 x2 x3 x4, eq(level) lag(0 0)) iv(i.Year i.Industry eq(level)) robust two small
      Please note, I have a year within my dataset 2008, that I did not consider as there was a reform at that time. And, I want to measure the change between pre- and post-reform.

      Kind regards,

      Tariqul

      Comment

      Working...
      X