经管之家App
让优质教育人人可得
立即打开
全部版块
我的主页
›
论坛
›
计量经济学与统计论坛 五区
›
计量经济学与统计软件
›
Stata专版
stata做IV回归时,每当想输出F值,就会显示file /xxx.txt could not be opened
楼主
一份黄焖鸡米饭
1694
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专版
休闲灌水
经管高考
金融类
金融实务版
EViews专版
热门文章
CDA 数据分析师:线性回归实战指南 —— 从 ...
世界上最简单的会计书(高清pdf版)
20XX年扶贫办雨露计划工作方案
同心动力携手山西金控,共筑金融企业“以人 ...
AI应用新范式:从工具革命到“超级OS”的演 ...
R语言实战 机器学习与数据分
蔡定创教授、李云庆院长致联合国秘书长古特 ...
2022年北京冬奥会英语观后感【10篇】
R语言预测实战
瓦尔拉斯方程组及其求解历史
推荐文章
AI狂潮席卷学术圈,不会编程也能打造专属智 ...
最快1年拿证,学费不足5W!热门美国人工智能 ...
关于如何利用文献的若干建议
关于学术研究和论文发表的一些建议
关于科研中如何学习基础知识的一些建议 (一 ...
一个自编的经济学建模小案例 --写给授课本科 ...
AI智能体赋能教学改革: 全国AI教育教学应用 ...
2025中国AIoT产业全景图谱报告-406页
关于文献求助的一些建议
几种免费下载文献的方法----我的文献应助经
说点什么
分享
微信
QQ空间
QQ
微博
扫码加好友,拉您进群
各岗位、行业、专业交流群