全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
763 2
2021-11-25
2021-11-25.png
如上图,F检验的P值=0.9574,outreg2 using td01.xls,addstat(F pvalue,e(p))可以输出,但di e(p)显示值为空。
请问:如何提取Prob > F?,谢谢!
二维码

扫码加我 拉你入群

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

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

全部回复
2022-2-4 22:16:01
qujl 发表于 2021-11-25 15:24
如上图,F检验的P值=0.9574,outreg2 using td01.xls,addstat(F pvalue,e(p))可以输出,但di e(p)显示值为 ...
各个参数怎么那么大,拟合优度居然是0,p值基本快接近1了,表示解释变量和被解释变量基本完全没有相关性啊
二维码

扫码加我 拉你入群

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

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

2022-2-5 09:41:13
1、reg回归结果是没有e(p)的。
所以 di e(p)是没有结果的


2、你查看outreg2的帮助,outreg2能输出是因为该命令说了会自动计算e(p)

    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)')

二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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