Announcement

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

  • reghdfe update and "function cleanup_before_saving() not declared in class Factor" error

    I recently update reghdfe to the august 2023 version (6.12) from SSC. When I try to use reghdfe the following error occurs:

    Code:
    function cleanup_before_saving() not declared in class Factor
    The error occurs on Stata 17 and 18. I also removed (by hand) mata libraries of former versions, but the error persists.

    I haven't read about the error so far, so I am wondering if anyone else had a similar issue.

  • #2
    Sergio answered on GitHub (https://github.com/sergiocorreia/reghdfe/issues/277). I was missing an update of ftools.

    Comment


    • #3
      Crossed with #2

      I ran into same issue and fixed by following Sergio's instrunction for version 6.x http://scorreia.com/software/reghdfe/install.html

      The important step is installing latest ftool then 6.x

      Code:
       * 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 6.x
      cap ado uninstall reghdfe
      net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/")

      Comment

      Working...
      X