Announcement

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

  • How to conduct the one-sided Wald test in Stata

    Hi everyone,

    I hope you're all doing well. I have a question regarding Stata that I would like to seek your assistance with.

    I'm wondering how to conduct a one-sided Wald test on the estimated coefficients _b[State1:World] and _b[State2:World] from a Markov-switching dynamic regression model.

    Here is the regression model code:

    Code:
    mswitch dr USA_All , states(2) switch(World) varswitch
    And here are the regression results:
    Click image for larger version

Name:	MS-DR.png
Views:	1
Size:	24.4 KB
ID:	1748834




    The Wald test results for both sides are as follows:

    Code:
     test _b[State1:World] = _b[State2:World]
    ( 1) [State1]World - [State2]World = 0

    chi2( 1) = 58.91
    Prob > chi2 = 0.0000


    I need to perform a one-sided Wald test with the null hypothesis:

    H0: _b[State1:World] - _b[State2:World] > 0


    I guess I need to use the invnchi2tail(df,np,p) command, but I'm not sure how to implement it in this specific context. Any guidance or suggestions would be greatly appreciated!

    Thank you very much for your help in advance!

    P.S. Attached are the data and relevant code.

    Best regards,

    Jaden
    Attached Files

  • #2
    Take a look at the last example at https://www.stata.com/support/faqs/s...-coefficients/

    Comment


    • #3
      Originally posted by Dimitriy V. Masterov View Post
      Thank you so much for your reply!

      Comment

      Working...
      X