我一开始先尝试了把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)。我也不知道为什么,但原理应该和前几楼说的一样,感觉得多尝试一下。


雷达卡
京公网安备 11010802022788号







