Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

struct ms_vcvorthog undefined #49

Open
wilburtownsend opened this issue Jan 18, 2023 · 5 comments
Open

struct ms_vcvorthog undefined #49

wilburtownsend opened this issue Jan 18, 2023 · 5 comments

Comments

@wilburtownsend
Copy link

I'm getting the error struct ms_vcvorthog undefined when I use ivreghdfe.

I get the error from the MWE

set obs 100
generate x = _n
generate y = x + rnormal()
generate z = x + rnormal()
ivreghdfe y (x=z)

I'm using Stata 16.1 and versions of ftools, reghdfe and ivreghdfe downloaded earlier today from https://github.com/sergiocorreia/ftools/archive/master.zip, https://github.com/sergiocorreia/reghdfe/archive/master.zip, https://github.com/sergiocorreia/ivreghdfe/archive/master.zip

@sergiocorreia
Copy link
Owner

Hi Wilbur,

I strongly suspect that this problem is b/c you don't have ivreg2 installed or have an older version (please do confirm if that's the case!). I'll try to add a better error message on this in the future.

Best,
Sergio

@wilburtownsend
Copy link
Author

Yes that's right, thanks

@wilburtownsend
Copy link
Author

Hi -- sorry to reopen this. I have the latest ivreg2 installed and am still getting this error.
More precisely, I am sometimes getting this error and sometimes not. I'm using an offline data environment with a pretty messy filesystem. I'm struggling to characterise when I will get this error. Any advice welcome.

@wilburtownsend
Copy link
Author

exiting Stata reinstalling reghdfe and manually adding the folder containing the ivreg2 ado files to adopath seems to fix it -- but is a bit annoying

@sergiocorreia
Copy link
Owner

with a pretty messy filesystem

I've heard of issues in the past on the NBER and Harvard environments, where multiple adopaths coexisted. For instance, in a quick search of my email inbox I found this from a few years ago from a Harvard prof:

Just to follow up with the solution. The NBER has an ftools package in its default ado path which is from September 2016. I changed the order of the ado path priority to my personal path which has the updated ftools package. That solved the problem.

So maybe the adopath command, as well as the which command (to know what folder is being used to retrieve an ado or mata file) would be useful to pin down the problem.

Best,
S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants