楼主: Lee_iris
37325 41

[回归分析求助] 如何在运行ivreghdfe后直接导出第一二阶段结果,以及对应的F和KP值 [推广有奖]

11
skylandocean 在职认证  发表于 2022-11-24 10:31:48
Lee_iris 发表于 2022-7-8 22:28
请问如何输出excel表格的结果呢?word好像不是表格类型的没法编辑啊

12
Lee_iris 在职认证  学生认证  发表于 2022-11-24 18:58:26
skylandocean 发表于 2022-11-24 10:31
请问如何输出excel表格的结果呢?word好像不是表格类型的没法编辑啊
抱歉,没有这样操作过

13
Lee_iris 在职认证  学生认证  发表于 2022-11-24 19:56:59
  1. ivreghdfe y $ctrl (x =iv), first savefirst savefprefix(f)  abs(city date)        cluster(city)
  2. est store iv
  3. outreg2 iv using Table1.doc,replace se dec(3) addtext(City FE,Yes, Date FE, Yes)  e(rkf) drop($ctrl) nocons tex(fragment)  ctitle(No lags) label(insert)
复制代码

14
skylandocean 在职认证  发表于 2022-11-25 10:46:13
Lee_iris 发表于 2022-11-24 18:58
抱歉,没有这样操作过
解决了,只需要把导出的文档格式改成csv格式就行了

15
thlll123 发表于 2022-12-26 11:02:25
您好,想问一下楼主,我这边输入 estadd scalar F = `e(widstat)': fx,显示错误estimation result fx not found,该怎么做呀

16
Lee_iris 在职认证  学生认证  发表于 2022-12-27 21:52:14
thlll123 发表于 2022-12-26 11:02
您好,想问一下楼主,我这边输入 estadd scalar F = `e(widstat)': fx,显示错误estimation result fx not ...
f后面跟着的应该是内生因变量的名称,比如第一行命令里的x,如果不叫x,叫ind,那后面fx应该替换成find

17
jie19980928 发表于 2023-1-11 23:28:42
Lee_iris 发表于 2022-12-27 21:52
f后面跟着的应该是内生因变量的名称,比如第一行命令里的x,如果不叫x,叫ind,那后面fx应该替换成find
您好,我换成自己的因变量之后还是报错说result fD not find (D是x) 请问是什么情况鸭

18
Lee_iris 在职认证  学生认证  发表于 2023-1-12 15:44:23
jie19980928 发表于 2023-1-11 23:28
您好,我换成自己的因变量之后还是报错说result fD not find (D是x) 请问是什么情况鸭
要不直接用13楼的代码

19
jie19980928 发表于 2023-1-14 00:18:47
Lee_iris 发表于 2023-1-12 15:44
要不直接用13楼的代码
代码输出不了截距项┭┮﹏┭┮,请问楼主怎么解决的这个问题呢?

20
Lee_iris 在职认证  学生认证  发表于 2023-1-15 13:47:56
jie19980928 发表于 2023-1-14 00:18
代码输出不了截距项┭┮﹏┭┮,请问楼主怎么解决的这个问题呢?
去掉 nocons

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-30 17:33