Announcement

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

  • wald test

    I think this should be easy, but it seems it is not?

    Lets say we run this regression:

    Code:
    sysuse auto, clear
    reg price mpg weight displacement
    I would like to test if: mpg > weight.

    I know I can do:
    Code:
    test (mpg = weight)
    But why can't I:
    Code:
    test (mpg > weight)
    Additionally, if possible, I would also like to test the ratio of the two variables:
    Code:
    test (mpg/weight = 1)
    test (mpg/weight > 1)
    Any help is greatly appreciated. Thanks in advance.


  • #2
    The clue is in the title. test is for linear hypotheses.

    Comment


    • #3
      Nick Cox : Thx Nick. Is there a simple way to test inequalities? I also tried testnl like this
      Code:
      testnl mpg >= weight
      Seems not right.

      Comment


      • #4
        Recasting the question to be about confidence intervals often helps.

        Comment

        Working...
        X