Closed AaronPengDing closed 1 year ago
Hi Peng,
thank you very much for your question. This seems to be an error with reghdfe. What happens if you type:
reghdfe, version
respectively
nwxtregress cap_cons compensation net_surplus , dvarlag(Wt,mata timesparse) ivarlag(Wt: compensation,mata timesparse ) seed(1234) absorb(ID Year, trace)
Thank you, Jan. When I type: . reghdfe, version last estimates not found r(301);
. nwxtregress cap_cons compensation net_surplus , dvarlag(Wt,mata timesparse) ivarlag(Wt: compensation,mata timesparse ) seed(1234) absorb(ID Year, trace)
command reghdfe_parse is unrecognized stata(): 3598 Stata returned error fixed_effects(): - function returned error
Thanks. I think there is a bug in reghdfe in the latest version from GitHub. Can you please try the version from SSC?
I install the stable version of reghdfe from SSC, and now it works. Thank you!
Thanks for letting me know. I will add a note for future versions. Cheers
Dear Jan, I run the demo code in your GitHub:
Partial out firm and year fixed effects (requires reghdfe): nwxtregress cap_cons compensation net_surplus , dvarlag(Wt,mata timesparse) ivarlag(Wt: compensation,mata timesparse ) seed(1234) absorb(ID Year)
I encounter the following error message: reghdfe Mata library not found or error in reghdfe. r(199);
I use stata 17MP and update the reghdfe. Thank you! Peng