sergiocorreia / ivreghdfe

Run IV/2SLS with many levels of fixed effects (i.e. ivreg2+reghdfe)
MIT License
83 stars 29 forks source link

error occurred while loading ivreghdfe.ado #14

Open huolin1990 opened 5 years ago

huolin1990 commented 5 years ago

When I run the code in the help file of ivreghdfe

sysuse auto ivreghdfe price weight (length=gear), absorb(rep78, tol(1e-6)) I can't get any result it always appear the following words:

struct ms_vcvorthog undefined (817 lines skipped) (error occurred while loading ivreghdfe.ado) r(3000);

I have use the online guide to installed three packages: ftools, reghdfe, and ivreg2, and the version of my Stata is MP 14.2.

luispfonseca commented 4 years ago

Had the same issue, Stata 16 on Linux.

How I was able to fix it (Following https://www.statalist.org/forums/forum/general-stata-discussion/general/1307939-trouble-with-reghdfe-or-ivreg2-center-not-found-struct-ms_vcvorthog-contains-no-such-member):

ssc install ivreg2, replace
ssc install ranktest, replace
sophieandrews commented 2 years ago

[ignore]

loumardinho commented 5 months ago

I'm using Stata 18.0 on MacOS and I experienced the same. The solution above does not work for me. Is anyone that solved it ? I want to use ivreghdfe.

turbanisch commented 4 months ago

For me the two lines suggested by @luispfonseca did the trick (Stata 16 on MacOS).