楼主: my1225
34359 20

[回归分析求助] 用 ivreghdfe 报错option requirements not allowed [推广有奖]

21
Sabrina112233 发表于 2026-1-23 09:50:32
我一开始先尝试了把github网站上src拖到stata的plus里,替换原来的包但是不行。试了好多次之后用这个代码[backcolor=rgba(0, 0, 0, 0)]cap ado uninstall ftools
[backcolor=rgba(0, 0, 0, 0)]net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/$ftvers/src/")
[backcolor=rgba(0, 0, 0, 0)]cap ado uninstall reghdfe
[backcolor=rgba(0, 0, 0, 0)]net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/$rhvers/src/")
[backcolor=rgba(0, 0, 0, 0)]cap ado uninstall ivreg2
[backcolor=rgba(0, 0, 0, 0)]ssc install ivreg2
[backcolor=rgba(0, 0, 0, 0)]cap ado uninstall ivreghdfe
[backcolor=rgba(0, 0, 0, 0)]net install ivreghdfe, from(https://raw.githubusercontent.com/sergiocorreia/ivreghdfe/$ivrvers/src/)
[backcolor=rgba(0, 0, 0, 0)]我就尝试这个代码。之后重新安装ftools的包,再重新安装ivreghdfe就可以了(这时候stata都有提示说command ivreghdfe is unrecognized)。我也不知道为什么,但原理应该和前几楼说的一样,感觉得多尝试一下。







您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-31 06:25