You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.12 21:52:35