楼主: chenzuofeng3
3047 3

[数据管理求助] 为什么我安装ivreghdfe命令后使用说加载ivreghdfe ado文件发生错误 [推广有奖]

  • 0关注
  • 0粉丝

等待验证会员

高中生

52%

还不是VIP/贵宾

-

威望
0
论坛币
200 个
通用积分
0.6342
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
347 点
帖子
26
精华
0
在线时间
19 小时
注册时间
2017-4-30
最后登录
2024-5-30

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
首先我去网站下载了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);
请问有大佬知道为什么吗?


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:IVREG ado文件 do文件 REG GHD

沙发
chenzuofeng3 发表于 2023-10-24 22:13:24 |只看作者 |坛友微信交流群
因为回归的时候用的reghdfe命令,所以做工具变量检验内生性的时候要用ivreghdfe。但是现在报错做不出来。

使用道具

藤椅
chenzuofeng3 发表于 2023-10-25 22:19:52 |只看作者 |坛友微信交流群
我安装了stata17,可以用了。

使用道具

板凳
张张张- 发表于 2023-11-24 11:29:57 |只看作者 |坛友微信交流群
我之前运行不了也是重复报错,重新安装了以下命令(如果有某一条运行不了可以先安装其他安装包比如ivreg2或reghdfe,然后再选中四条安装命令同时运行)。
stata中直接help ivreghdfe会弹出网址,网址上有这几条命令的说明
Install ftools (remove program if it existed previously)
cap ado uninstall ftools
net install ftools, from("https://raw.githubusercontent.com/sergiocorreia/ftools/master/src/")

* Install reghdfe
cap ado uninstall reghdfe
net install reghdfe, from("https://raw.githubusercontent.com/sergiocorreia/reghdfe/master/src/")

* Install ivreg2, the core package
cap ado uninstall ivreg2
ssc install ivreg2

* Finally, install this package
cap ado uninstall ivreghdfe
net install ivreghdfe, from(https://raw.githubusercontent.co ... eghdfe/master/src/)

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-7-4 16:11