Announcement

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

  • ivreg2 command

    Dear statalist members,

    I´m running some econometrical analysis and when I try to run any "ivreg2" code it appears and error message on the screen "command ivreg2 is unrecognized". It seems to me that there is a package related to this code that will help me to run my analysis. However, I´m not sure about if my conclusions about this problem are correctly drawn and even if they are, I wouldn´t know how to install this package (I´m relatively new in stata). Can someone provide some guidance on this?

    Thank you in advance!

  • #2
    You have to first install -ivreg2- and -ranktest- in order to use -ivreg2- in your regression. Please execute the following command in the command window, respectively:
    Code:
    ssc install ivreg2
    ssc install ranktest
    Ho-Chuan (River) Huang
    Stata 19.0, MP(4)

    Comment


    • #3
      Thank you River Huang, It´s working perfectly now!

      Comment


      • #4
        Originally posted by River Huang View Post
        You have to first install -ivreg2- and -ranktest- in order to use -ivreg2- in your regression. Please execute the following command in the command window, respectively:
        Code:
        ssc install ivreg2
        ssc install ranktest
        Hi, I tried the above installations but still getting the same error - "command xtivreg2 is unrecognized". Please help. Thanks.

        Comment


        • #5
          Dear Nitin, Please "ssc install xtivreg2" as well.
          Ho-Chuan (River) Huang
          Stata 19.0, MP(4)

          Comment


          • #6
            Originally posted by River Huang View Post
            Dear Nitin, Please "ssc install xtivreg2" as well.
            Thank you, River.

            Regards,
            Nitin

            Comment

            Working...
            X