sergiocorreia / reghdfe

Linear, IV and GMM Regressions With Any Number of Fixed Effects
http://scorreia.com/software/reghdfe/
MIT License
219 stars 57 forks source link

[BUG] Version 6.12.3 of reghdfe appears to break ppmlhdfe #273

Closed mmooddaa closed 1 year ago

mmooddaa commented 1 year ago

Version 6.12.3 of reghdfe appears to have broken ppmlhdfe. After updating reghdfe to 6.12.3, I get the following error when running ppmlhdfe:

cap ado uninstall ftools
cap ado uninstall reghdfe
cap ado uninstall ppmlhdfe

ssc install ftools
ssc install reghdfe
ssc install ppmlhdfe

. ppmlhdfe price weight, a(turn)
ppmlhdfe requires the reghdfe package (version 6 or newer), which is not installed
    - install from SSC
    - install from Github
(error occurred while loading ppmlhdfe.ado)
r(9);

ppmlhdfe stoped giving me this error after I reinstalled version 6.12.1 of reghdfe.

I am using the following version of Stata:

Apologies if I should have posted this bug report in ppmlhdfe instead.

sergiocorreia commented 1 year ago

Hi Michael,

I traced the bug to a missing file on the SSC version of reghdfe. In particular, the file reghdfe5.mata is missing from SSC. As a temporary workaround, if you install reghdfe from Github the problem dissapears:

net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/")
mmooddaa commented 1 year ago

Great, that works. Thanks!