楼主: 飞转的时光
17036 7

[时间序列问题] stata中ologit之后,如何输出 Pseudo R2 呢,我用了outreg2和esttab都不能输出 [推广有奖]

  • 0关注
  • 0粉丝

高中生

15%

还不是VIP/贵宾

-

威望
0
论坛币
991 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
81 点
帖子
10
精华
0
在线时间
32 小时
注册时间
2013-10-2
最后登录
2018-4-4

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
stata中ologit之后,如何输出 Pseudo R2  呢,我用了outreg2和esttab都不能输出 Pseudo R2
esttab m1 m2 m3 m4  n1 n2 n3 n4,b(%6.3f) se(%6.2f) star(* 0.1 ** 0.05 *** 0.01)scalar(r2 r2_a N) compress nogap,不行,outreg不行



由于回归很多,不想一个一个粘贴啊
二维码

扫码加我 拉你入群

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

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

关键词:ologit esttab outreg pseudo Stata 如何

回帖推荐

蓝色 发表于2楼  查看完整内容

为什么不仔细看outreg2的帮助文件的例子呢? Example 9. Adding r( ) e( ) scalars Additional statistics may be added with addstat( ) or addtext( ). Values stored in macros r( ), e( ), or s( ) can be included directly. You can see what values are available by typing ereturn list or return list. To test the equality of two of the estimated coefficients and report the re ...
沙发
蓝色 发表于 2017-3-14 16:10:17 |只看作者 |坛友微信交流群
为什么不仔细看outreg2的帮助文件的例子呢?



Example 9. Adding r( ) e( ) scalars




    Additional statistics may be added with addstat( ) or addtext( ). Values stored in macros r( ), e( ), or s( )
    can be included directly. You can see what values are available by typing ereturn list or return list.


    To test the equality of two of the estimated coefficients and report the results in the table, note that test
    will sometimes return chi-squared, then you would instead use addstat(chi-square test, r(chi2)):


    reg mpg foreign weight length
    test foreign length
    outreg2 using myfile, adds(F-test, r(F), Prob > F, `r(p)') replace
    seeout


    To add results of lincom postestimation command to a table:


    sysuse auto, clear
    reg price mpg rep78 head
    lincom mpg + rep
    local tstat=r(estimate)/r(se)
    local pval = tprob(r(df), abs(`tstat'))
    outreg2 using "myfile", adds(joint, r(estimate), t-stat, `tstat', p-val,`pval') replace see


    In some cases it is better to save the value of a previously calculated statistic in a local macro and then
    put that into addstat( ):


    regress mpg rep78 headroom
    test rep78
    local F1 = r(F)
    test headroom
    outreg2 using 2test, addstat(Test1 F, `F1', Test2 F, `r(F)')


    If it is missing, outreg2 will automatically calculate e(p), which is presumably the F-test or chi-square-test
    of significance of a regression.


    outreg2 using myfile, addstat(F test, e(p))


   Another example would be to report a pseudo R-squared after a logit estimation, which outreg2 does not
    otherwise report.

    logit foreign price trunk weight
    outreg2 using myfile, addstat(Pseudo R-squared, `e(r2_p)')



使用道具

藤椅
飞转的时光 发表于 2017-3-14 18:16:29 |只看作者 |坛友微信交流群
蓝色 发表于 2017-3-14 16:10
为什么不仔细看outreg2的帮助文件的例子呢?
谢谢~~

使用道具

板凳
飞转的时光 发表于 2017-3-14 18:39:15 |只看作者 |坛友微信交流群
蓝色 发表于 2017-3-14 16:10
为什么不仔细看outreg2的帮助文件的例子呢?
谢啦~~~

使用道具

报纸
王小圈与静 发表于 2017-11-26 01:42:58 来自手机 |只看作者 |坛友微信交流群
飞转的时光 发表于 2017-3-14 15:45
stata中ologit之后,如何输出 Pseudo R2  呢,我用了outreg2和esttab都不能输出 Pseudo R2
esttab m1 m2  ...
后面加pr2就行了

使用道具

地板
forever+ 发表于 2019-4-15 16:14:52 |只看作者 |坛友微信交流群
蓝色 发表于 2017-3-14 16:10
为什么不仔细看outreg2的帮助文件的例子呢?
我进行了probit回归和ivprobit回归之后,怎么用outreg2输出chi2呢?我在后面添加了addstat(chi2, r(chi2)),显示invalid syntax

使用道具

7
焰空空 发表于 2022-4-21 01:21:09 |只看作者 |坛友微信交流群
forever+ 发表于 2019-4-15 16:14
我进行了probit回归和ivprobit回归之后,怎么用outreg2输出chi2呢?我在后面添加了addstat(chi2, r(chi2) ...
请问您现在解决了吗

使用道具

8
okcryintg 发表于 2023-9-16 15:49:38 |只看作者 |坛友微信交流群
面板分位数回归以后输出结果里找不到R2,怎么解决啊??!!!急求答案,感恩感恩

使用道具

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

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

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

GMT+8, 2024-4-28 13:41