Announcement

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

  • ivreghdfe gives an error, although it worked previously

    Dear all,

    I am experiencing a strange problem with the command "ivreghdfe". I have a do-file that includes a regression using the estimator "ivregdhfe". The code ran well in the past. However, today, when rerunning this code, I received an error message saying, "option requirements not allowed."

    My university recently updated our operating systems to Windows 10, which I thought could have triggered this error. So, I checked if "ivregdhfe" and the underlying packages "ivreg2" and "rehdfe" were already installed. They were.

    I then ran the example code from ivreghdfe's help file:

    clear
    sysuse auto
    ivreghdfe price weight (length=gear), absorb(rep78, tol(1e-6))


    This gave the same strange error message as before: "option requirements not allowed."

    I am running out of ideas about what to do.

    I would be thankful for any hints!

    Best,
    Mario

  • #2
    Mario:
    see https://github.com/sergiocorreia/ivreghdfe/issues/56
    Let's hope that Sergio Correia can chime in.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Carlo, thanks! It's good to know that I'm not the only one having these troubles - though I was hoping it was just a silly mistake that would be easy to resolve :-)

      Comment


      • #4
        same here.

        Comment


        • #5
          I found that 'ivreghdfe' works just fine on my other laptop, which also runs Windows 10. The do-file and help-file routine mentioned in my initial post both run without issues.

          Comment


          • #6
            Dear all,

            Is there no solution to my problem? I would appreciate any help!

            Best regards,
            Mario

            Comment


            • #7
              Have you tried uninstalling and reinstalling the command? You should probably do the same with its dependencies. First run

              Code:
              ado
              Then look at the package number. If this is, e.g., 29, then

              Code:
              ado uninstall [29]
              Then reinstall from https://github.com/sergiocorreia/ivreghdfe. If the latest GitHub version has a bug, revert to the SSC version.

              Comment


              • #8
                I am experiencing the same problem. I am running Stata/MP 18.0 on a brand new Macbook, with Mac OS Sonoma 14.5. All the ado files have just been installed from SSC.

                Comment


                • #9
                  Try the GitHub version, as it is the one that is actively maintained.

                  Comment


                  • #10
                    Dear Andrew,
                    I am sorry that I am replying with a month delay, but I justed worked on my other computer, where I did not have these problems.

                    Now, I tried your solution and it did work! **Thank you indeed**




                    To everybody in this forum who is experiencing similar issues, I followed these steps:

                    1. I went to https://github.com/sergiocorreia/ivr...e#installation, which Andrew Musau suggested.
                    2. I followed the installation proces, as suggested on this page:
                    * Install ftools (remove program if it existed previously) cap ado uninstall ftools net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/master/src/") * Install reghdfe cap ado uninstall reghdfe net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/") * Install ivreg2, the core package cap ado uninstall ivreg2 ssc install ivreg2 * Finally, install this package cap ado uninstall ivreghdfe net install ivreghdfe, from(https://raw.githubusercontent.com/se...fe/master/src/)
                    with the exception that "ssc install ivreg2" produced the error "the following files already exist and are different: ~\ado\plus\i\ivreg2.ado no files installed or copied (no action taken)". I thus typed "ssc install ivreg2, replace" instead and it worked.

                    Now, all is running smoothly as it should.

                    Comment

                    Working...
                    X