楼主: onlyhope79
18530 11

[其他] 求助,关于输出回归结果的星号标注问题!!!! [推广有奖]

  • 0关注
  • 0粉丝

高中生

35%

还不是VIP/贵宾

-

威望
0
论坛币
21 个
通用积分
0.0043
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
525 点
帖子
18
精华
0
在线时间
32 小时
注册时间
2008-2-15
最后登录
2012-11-9

楼主
onlyhope79 发表于 2011-10-29 13:43:36 |AI写论文
1论坛币
输出的回归结果里,

星号是按下面这个标注的

t statistics in parentheses

* p < 0.05, ** p < 0.01, *** p < 0.001



可是我想要这样标注,

* p < 0.1, ** p < 0.05, *** p < 0.01



不知道怎么改,555555


最佳答案

夸克之一 查看完整内容

outreg2里自己设定下就好了。。
关键词:回归结果 parentheses Statistics statistic Statist

沙发
夸克之一 发表于 2011-10-29 13:43:37
outreg2里自己设定下就好了。。

藤椅
onlyhope79 发表于 2011-10-29 14:25:43
谢谢哈 搞定了

板凳
木木暮暮 发表于 2012-2-12 11:24:07
onlyhope79 发表于 2011-10-29 14:25
谢谢哈 搞定了
你好,跟你有同样的问题,能不能教我下要怎么设定啊?十分感谢~

报纸
h3327156 发表于 2012-2-13 00:00:48
木木暮暮 发表于 2012-2-12 11:24
你好,跟你有同样的问题,能不能教我下要怎么设定啊?十分感谢~
outreg2的帮助文件上有说明。
alpha(numlist) specifies the levels of significance, separated by comma from the most significant
        to the least signficiant. Example: alpha(0.001, 0.01, 0.05). Up to 3 are automatically assigned
        asterisks. If more than 3 levels are defined, then the symbols must be specified with
        symbol(text).
symbol(text) specifies symbols for the levels of significance from the most significant to the
        least significant, the default symbol(***, **, *).
        They will assigned the significance levels of 0.01, 0.05, and 0.10 automatically in
        that order. If more than 3 symbols are assigned, then the same number of levels of
        significance must be specified using alpha.

如果您懒地看英文,或看了还是不太清楚,
以下是范例,请参考!
假设您无聊到用四种显著水准【即0.001  0.01 0.05 0.1】并且是四种符号【# * + $】
当然随您高兴,您可以设计更多样化,Stata很贴心的!

set seed 12345
set obs 10000
drawnorm u1 u2 u3
gen x1=uniform()
gen y1=0.7*x1+u1
gen x2=uniform()
gen y2=0.5*x1+0.7*x2+u2
gen x3=uniform()
gen y3=0.3*x1+0.5*x2+0.3*x3+u3

reg y1 x1
estimates store a1

reg y2 x1 x2
estimates store a2

reg y3 x1 x2 x3
estimates store a3

outreg2 [a1 a2 a3] using d:\testout3, word excel replace alpha(0.001, 0.01, 0.05,0.1) symbol(#, *, +,$)

地板
lily0824 发表于 2012-3-12 12:52:12
h3327156 发表于 2012-2-13 00:00
outreg2的帮助文件上有说明。
alpha(numlist) specifies the levels of significance, separated by com ...
灰常感谢!!!!!!

7
shenruiyang211 发表于 2012-4-22 10:45:34
h3327156 发表于 2012-2-13 00:00
outreg2的帮助文件上有说明。
alpha(numlist) specifies the levels of significance, separated by com ...
这样貌似不行啊,每次的显著性标志只会给出第一个#

8
gucci972 发表于 2012-4-22 13:42:02
学习了。。。

9
onlyhope79 发表于 2012-4-23 20:18:20
我后来用esttab输出,后面设定为 star(* 0.10 ** 0.05 *** 0.01) 就ok了

10
onlyhope79 发表于 2012-4-23 20:20:42
要注意中间不能有逗号阿。esttab和outreg 的语法不太一样   

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

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