首先我去网站下载了ivreghdfe、ftools、reghdfe zip文件后解压,放到了我STATA文件中
然后用了大佬的命令:因为害怕以前有相关文件,所以用了force
. cap ado uninstall ftools
. cap ado uninstall reghdfe
. cap ado uninstall ivreghdfe
. net install ftools, from(D:\论文研究工具\STATA\ftools-master\src) force
checking ftools consistency and verifying not already installed...
installing into c:\ado\plus\...
installation complete.
. net install reghdfe, from(D:\论文研究工具\STATA\reghdfe-master\src) force
checking reghdfe consistency and verifying not already installed...
installing into c:\ado\plus\...
installation complete.
. net install ivreghdfe, from(D:\论文研究工具\STATA\ivreghdfe-master\src) force
checking ivreghdfe consistency and verifying not already installed...
the following files will be replaced:
c:\ado\plus\i\ivreghdfe.ado
c:\ado\plus\i\ivreghdfe.sthlp
installing into c:\ado\plus\...
installation complete.
但是之后使用ivreghdfe的时候:ivreghdfe y 控制变量(x1=IV),absorb(year ind) cluster(id) first endog(x1)
报错:
invalid syntax
(error occurred while loading ivreghdfe.ado)
r(198);
请问有大佬知道为什么吗?