经管之家App
让优质教育人人可得
立即打开
全部版块
我的主页
›
论坛
›
计量经济学与统计论坛 五区
›
计量经济学与统计软件
›
Stata专版
stata做IV回归时,每当想输出F值,就会显示file /xxx.txt could not be opened
楼主
一份黄焖鸡米饭
1783
3
收藏
2021-06-27
不管是ivregress 2sls 还是ivregress2 2sls 还是ivreghdfe,不输出F值时,outreg2可以运行并输出回归结果,但每当想输出F值的时候:
outreg2 using $table/xxx.doc, append addstat(First stage F-stat, e(widstat)) dec(4)
或
outreg2 using $table/xxx.doc, cttop(first) tstat tdec(3) bdec(3) word replace
或
adds(IV F-stat,`fstat')
outreg2 using $table/ols_5.doc, cttop(second) word
都会显示
file /xxx.txt could not be opened r(603);
不知道是什么原因
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
全部回复
沙发
蓝色
2021-6-28 12:58:41
outreg2 using d:\ols_5.doc, cttop(second) word adds(IV F-stat,`e(F)')
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
藤椅
蓝色
2021-6-28 12:59:28
. webuse hsng2
(1980 Census housing data)
. ivregress 2sls rent pcturban (hsngval = faminc i.region), small
Instrumental variables (2SLS) regression
Source | SS df MS Number of obs = 50
-------------+------------------------------ F( 2, 47) = 42.66
Model | 36677.4033 2 18338.7017 Prob > F = 0.0000
Residual | 24565.7167 47 522.674823 R-squared = 0.5989
-------------+------------------------------ Adj R-squared = 0.5818
Total | 61243.12 49 1249.85959 Root MSE = 22.862
------------------------------------------------------------------------------
rent | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
hsngval | .0022398 .0003388 6.61 0.000 .0015583 .0029213
pcturban | .081516 .3081528 0.26 0.793 -.5384074 .7014394
_cons | 120.7065 15.70688 7.68 0.000 89.10834 152.3047
------------------------------------------------------------------------------
Instrumented: hsngval
Instruments: pcturban faminc 2.region 3.region 4.region
. outreg2 using d:\ols_5.doc, cttop(second) word adds(IV F-stat,`e(F)')
d:\ols_5.doc
dir : seeout
.
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
板凳
一份黄焖鸡米饭
2021-7-11 06:26:50
蓝色 发表于 2021-6-28 12:59
. webuse hsng2
(1980 Census housing data)
谢谢,但是还是显示txt could not be opened r(603);
扫码加我 拉你入群
请注明:姓名-公司-职位
以便审核进群资格,未注明则拒绝
相关推荐
请问运行stata时说file stata 12\log\s001301.smcl could not be opened
关于用STATA做脉冲,结果显示irf could not be opened的问题
mac版stata脉冲响应图没法画出来.irf could not be opened
面板门槛的例子stata运行报错“file __000003.dta could not be opened“
请问运行 do file .....Files (x86)\Stata15\stata_intro.log could not be opened
stata r(603)
stata一直显示ile C:\ST_00000001.tmp could not be opened,已经卸载重装好几遍了
Stata小白求助,R603问题如何解决
stata安装问题解决:Could not move StataSE-64.exe to StataSE-64_ol > d
stata file could not be opened
栏目导航
Stata专版
会计与财务管理
经管文库(原现金交易版)
产业经济学
经管高考
大数据分析
热门文章
在概率与代码之间:Agent Skills 是 AI 的枷 ...
求:Multiple Time Scale Dynamics
2026 AI赋能文化产业发展报告-AI创意业态透 ...
法兰西数学精品译丛09-概率与位势(第Ⅰ卷) ...
表格结构数据特征与CDA数据分析师:精准适配 ...
CDA 认证考试大纲 2025 重磅更新:一二级考 ...
问卷填写,每份50个论坛币
新宏观丨豆包,传统经济学与商学对全球性债 ...
新宏观丨豆包,谁是传统经济学的最大反对派
硅光芯片代工爆发式增长,重构全球半导体产 ...
推荐文章
2026JG学术冬训营:从Stata初高到Python机器 ...
【必看】【本版版规,欢迎发悬赏贴求助】
【新课】26年3月|Gemini辅助论文写作与数据 ...
关于如何利用文献的若干建议
关于学术研究和论文发表的一些建议
关于科研中如何学习基础知识的一些建议 (一 ...
一个自编的经济学建模小案例 --写给授课本科 ...
AI智能体赋能教学改革: 全国AI教育教学应用 ...
2025中国AIoT产业全景图谱报告-406页
关于文献求助的一些建议
说点什么
分享
微信
QQ空间
QQ
微博
扫码加好友,拉您进群
各岗位、行业、专业交流群