Stata 18中ivreghdfe命令报错:option requirements not allowed 求助
问题描述
在Stata 18中使用ivreghdfe命令时,一周前相同代码和数据库还能正常运行,如今却触发如下报错:
option requirements not allowed r(198);
已尝试更新ftools、reghdfe、ivreg2及ivreghdfe包,但问题仍未解决。
解决方案
问题源于通过ssc install安装部分包时存在ADO文件异常,改用从开发者仓库直接执行net install命令即可解决。运行以下代码重新安装相关依赖包:
* 安装ftools(先移除已存在的旧版本) cap ado uninstall ftools net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/master/src/") * 安装reghdfe cap ado uninstall reghdfe net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/") * 安装核心包ivreg2 cap ado uninstall ivreg2 ssc install ivreg2 * 最后安装ivreghdfe cap ado uninstall ivreghdfe net install ivreghdfe, from(https://raw.githubusercontent.com/sergiocorreia/ivreghdfe/master/src/)
内容的提问来源于stack exchange,提问作者Alan David Gómez
相关产品推荐
相关产品推荐

