Open blacktreeM opened 5 years ago
Had the same problem on a new computer -- what a pain.
I traced the error from reghdfe
to ftools
, then to boottest
. Essentially, the problem seems to be that when you ssc install boottest
, it installs a version compatible only with Stata 13+, even if using an older version (in my case, 12). You will see this if you try to run the boottest
command (it throws an error).
Instead, I had to go to the older version's source code, and manually drag each of the files into the appropriate C:/ado/personal/l/
, C:/ado/personal/b/
, etc. folders (based on first letter of file) in order to overwrite the ssc-installed code. Now it works.
I can't speak to the requirements for reghdfe. As for boottest, the help file for the main package includes a link to the latest version compatible with Stata 12 or earlier, and this help file is itself readable in old Stata versions. Unfortunately it is not possible to conveniently install the old version from GitHub because in old versions of Stata the "net install" command does not support https, which GitHub requires.
Thanks @droodman. I looked into it briefly but yes, I don't think there is an obvious solution because it doesn't seem that ssc supports versioning (unless whole command is renamed). In any case, the fix was easy with the code you posted -- the annoying part was identifying the problem :)
@sergiocorreia, in case it helps: I was confused because it said "Error: Stata versions 12 or earlier require the boottest package"
but findit
showed boottest
installed. The error was thrown because mata: boottestVersion()
didn't work, but I didn't understand why until I tried to independently use the boottest
command. So maybe it's worth adding a line to the error message, saying that it might be necessary to install boottest manually from the link I posted above.
Hopefully this will save some time for the next person who hits the issue!
thank you @droodman @khof312 for comments, it definitely helped me!
but my installation was a bit different, so I'll leave it here my solution, just to help the next.
Solution:
/Applications/Stata/ado
, and I could not figure out how to copy individual files boottest
, uninstall with cap ado uninstall boottest
net install boottest, from("/Users/Admin/Downloads/boottest-2.6.0")
(the path will be different for each person)reghdfe, version
, Stata finally recognizes command installation \o/
I have old Stata 11, and I was using reghdfe for a while, but after I bought a new laptop and installed Stata 11, I cannot use reghdfe anymore. I get the following messages:
. ssc install reghdfe checking reghdfe consistency and verifying not already installed... installing into c:\ado\plus... installation complete.
. . ssc install ftools checking ftools consistency and verifying not already installed... installing into c:\ado\plus... installation complete.
. reghdfe, version Error: Stata versions 12 or earlier require the boottest package To install, from within Stata type (error occurred while loading reghdfe.ado) r(601);
. ssc install boottest checking boottest consistency and verifying not already installed... installing into c:\ado\plus... installation complete.
. reghdfe, version Error: Stata versions 12 or earlier require the boottest package To install, from within Stata type (error occurred while loading reghdfe.ado) r(601);
If you could help me, I would appreciate it! Thank you.