Announcement

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

  • Issue with ivreghdfe (last estimates not found) in StataNow but no issue with Stata 17

    Hi all,

    I am currently facing an issue with -ivreghdfe- command (from SSC). Specifically, Stata returns "last estimates not found" error message when I use StataNow. However, the command works well with Stata 17. Does anyone encounter the similar issue and figure out how to fix it? I have tried to reinstall the command as well as ftools but the issue remains. Do you have any ideas? Sergio Correia

    StataNow is on a MacBook Pro M4 and Stata 17 is on a MacBook Air M3.

    Thanks.

  • #2
    Matthew:
    as per FAQ could you please share what you typed and what Stata gave you back? Thanks.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Originally posted by Carlo Lazzaro View Post
      Matthew:
      as per FAQ could you please share what you typed and what Stata gave you back? Thanks.
      Dear Carlo,

      I just go to the help file of the command and run code examples there using auto data. For instance:
      Code:
      sysuse auto
      ivreghdfe price weight (length=gear), absorb(rep78, tol(1e-6))
      The code above works well with Stata 17 (MacBook Air M3/MP), but does not work with StataNow (MacBook Pro M4/MP) - error message: last estimates not found. Any suggestions?

      Thanks!

      Comment


      • #4
        Hi Matthew,

        Please try following what is in https://github.com/sergiocorreia/ivreghdfe

        In particular, try running the following code:

        Code:
        * Set versions
        global ftvers  master
        global rhvers  master
        global ivrvers master
        * Use an older version
        * global ivrvers 1.1.2
        
        * Install ftools (remove program if it existed previously)
        cap ado uninstall ftools
        net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/$ftvers/src/") replace
        
        * Install reghdfe
        cap ado uninstall reghdfe
        net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/$rhvers/src/") replace
        
        * 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/sergiocorreia/ivreghdfe/$ivrvers/src/) replace

        Comment


        • #5
          Matthew:
          thanks for clarifying.
          I get the the very same error message on Stata 17, too .
          Kind regards,
          Carlo
          (Stata 19.0)

          Comment


          • #6
            Thanks, Enrique.
            Kind regards,
            Carlo
            (Stata 19.0)

            Comment


            • #7
              I forgot to mention. The syntax also changed. Notice that the tolerance is a separate option outside -absorb()-

              Code:
              ivreghdfe price weight (length=gear), absorb(rep78) tol(1e-6)

              Comment


              • #8
                Originally posted by Enrique Pinzon (StataCorp) View Post
                Hi Matthew,

                Please try following what is in https://github.com/sergiocorreia/ivreghdfe

                In particular, try running the following code:

                Code:
                * Set versions
                global ftvers master
                global rhvers master
                global ivrvers master
                * Use an older version
                * global ivrvers 1.1.2
                
                * Install ftools (remove program if it existed previously)
                cap ado uninstall ftools
                net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/$ftvers/src/") replace
                
                * Install reghdfe
                cap ado uninstall reghdfe
                net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/$rhvers/src/") replace
                
                * 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/sergiocorreia/ivreghdfe/$ivrvers/src/) replace
                Thank you so much, Enrique. The problem is fixed!

                Comment

                Working...
                X