全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
10380 7
2015-06-27
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值,不知道输入什么命令可以实现?

附件列表
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)')



二维码

扫码加我 拉你入群

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

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

2015-6-27 23:40:08
复制代码


二维码

扫码加我 拉你入群

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

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

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

二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群