10297 7

[回归分析求助] outreg2时,如何在三线表的最下方增加F值? [推广有奖]

  • 0关注
  • 0粉丝

高中生

22%

还不是VIP/贵宾

-

威望
0
论坛币
4 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
194 点
帖子
15
精华
0
在线时间
18 小时
注册时间
2013-12-8
最后登录
2015-10-5

楼主
恼流萤不寐_。 发表于 2015-6-27 22:19:20 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
sysuse auto,clear
reg price weight
est store m1
reg price weight length
est store m2
reg price weight length rep78
est store m3
outreg2 [m1] using tab01, word replace     
             ctitle("price,reg1,m1")
outreg2 [m2] using tab01, word        
             ctitle("price,reg2,m2") append               
outreg2 [m3] using tab01, word   
             ctitle("price,reg3,m3") append        
输入的命令和上面类似,
但是就如图所示,下方有一行F值,不知道输入什么命令可以实现?

二维码

扫码加我 拉你入群

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

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

关键词:outreg REG Out 三线表 replace replace store price 如何

QQ图片20150627221753.png (50.68 KB)

QQ图片20150627221753.png

沙发
蓝色 发表于 2015-6-27 22:37:04
看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)')



已有 1 人评分学术水平 收起 理由
恼流萤不寐_。 + 1 精彩帖子

总评分: 学术水平 + 1   查看全部评分

藤椅
niuniuyiwan 在职认证  发表于 2015-6-27 23:40:08
  1. sysuse auto,clear
  2. reg price length
  3. est sto m1
  4. reg price length weight
  5. est sto m2
  6. reg price length weight rep78
  7. est sto m3
  8. outreg2 [m1] using 1 ,word  replace ///
  9.     ctitle(price, reg1, m1)  addstat(F test, e(p))
  10. outreg2 [m2] using 1,word     ///
  11.     ctitle(price ,reg2 ,m2)  addstat(F test, e(p))  append
  12. outreg2 [m3] using 1,word   ///
  13.     ctitle(price ,reg3, m3)  addstat(F test, e(p))  append
复制代码


已有 1 人评分学术水平 热心指数 收起 理由
恼流萤不寐_。 + 1 + 1 精彩帖子

总评分: 学术水平 + 1  热心指数 + 1   查看全部评分

板凳
恼流萤不寐_。 发表于 2015-6-28 10:36:15
蓝色 发表于 2015-6-27 22:37
看outreg2的帮助啊
里面都有例子
还有我想继续问一下,我F test的结果是5.87e-09        5.87e-09        5.87e-09,在哪里输入format呢?

报纸
恼流萤不寐_。 发表于 2015-6-28 10:36:57
niuniuyiwan 发表于 2015-6-27 23:40
还有我想继续问一下,我F test的结果是5.87e-09  5.87e-09        5.87e-09,在哪里输入format呢?

地板
蓝色 发表于 2015-6-28 11:05:37
看帮助啊,里面都有介绍啊,这些问题,自己多看帮助,都能够解决的。否则,你怎么能自己处理问题。


   fixed decimals & formats

        dec(#) or fmt(type) for everything, default dec(3) and fmt(fc)

        where # is fixed decimals between 0 and 11,
        and type is one of the following:

         e   exponential
         f   fixed
         fc  fixed with commas for thousands
         g   general
         gc  general with commas for thousands

        Use the following only if you want them different from dec(#) or fmt(type):

        bdec(#) or bfmt(type) for coefficient only
        sdec(#) or sfmt(type) for standard error
        tdec(#) or tfmt(type) for t-statistics
        pdec(#) or pfmt(type) for p-value
        cdec(#) or cfmt(type) for conf. interval
        rdec(#) or rfmt(type) for r-square
        adec(#) or afmt(type) for addstat( ) contents

7
niuniuyiwan 在职认证  发表于 2015-6-28 12:03:08
恼流萤不寐_。 发表于 2015-6-28 10:36
还有我想继续问一下,我F test的结果是5.87e-09  5.87e-09        5.87e-09,在哪里输入format呢?
  1. clear all
  2. sysuse auto,clear
  3. reg price length
  4. est sto m1
  5. reg price length weight
  6. est sto m2
  7. reg price length weight rep78
  8. est sto m3
  9. outreg2 [m1] using 1 ,word  replace ///
  10.   adec(3) afmt(e) ctitle(price, reg1, m1)  addstat(F test, e(p))
  11. outreg2 [m2] using 1,word     ///
  12.     adec(3) afmt(e) ctitle(price ,reg2 ,m2)  addstat(F test, e(p))   append
  13. outreg2 [m3] using 1,word   ///
  14.    adec(3) afmt(e)  ctitle(price ,reg3, m3)  addstat(F test, e(p))   append
复制代码


8
hkingwang 发表于 2017-8-4 10:40:30
niuniuyiwan 发表于 2015-6-28 12:03
outreg2 [m3] using 1,word   ///
   adec(3) afmt(e)  ctitle(price ,reg3, m3)  addstat(F test, e(p))   append

这个命令会报错呢

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

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