楼主: 出生在冬天
25229 20

[其他] [求助]在stata中,如何对有显著意义的结果加星号? [推广有奖]

  • 0关注
  • 0粉丝

初中生

76%

还不是VIP/贵宾

-

威望
0
论坛币
946 个
通用积分
0.0007
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
202 点
帖子
19
精华
0
在线时间
6 小时
注册时间
2005-4-27
最后登录
2013-12-11

楼主
出生在冬天 发表于 2006-2-22 10:27:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
求助如题
二维码

扫码加我 拉你入群

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

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

关键词:Stata tata 如何

沙发
蓝色 发表于 2006-2-22 12:28:00
outreg  命令啊

藤椅
出生在冬天 发表于 2006-2-22 20:01:00

谢谢,蓝色的回复。

回归分析后,用est table,star 这个命令,经高人指点的。呵呵

板凳
蓝色 发表于 2006-2-22 20:21:00
那个命令可不如outreg啊,outreg可以输出像发表文章那样的格式,在word里面打开,转化为表格,你就可以看到,很漂亮的。
而且可以标t值、p值等等
est 我也用过,不方便

报纸
蓝色 发表于 2006-2-22 20:31:00
看这里
http://www.ats.ucla.edu/stat/stata/faq/outreg.htm

地板
蓝色 发表于 2006-2-22 20:32:00





UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

Stata FAQ
Can I make regression tables that look like those in journal articles?

This FAQ illustrates the outreg command that makes regression tables in a format that is commonly used in journal articles. The outreg command was written by John Luke Gallup and appears in the Stata Technical Bulletin #49. You can download outreg from within Stata by typing findit outreg (see How can I used the findit command to search for programs and get additional help? for more information about using findit).

Let's illustrate use of the outreg command using the high school and beyond data file we use in our Stata Classes.
use http://www.ats.ucla.edu/stat/stata/notes/hsb1, clear
(highschool and beyond (200 cases))
We will run 3 regression models predicting the variable read. The first model will predict from the variable write, the second model will predict from math and write, and the third model will predict from socst, math, and write. We will use outreg to create a single table that will summarize these models side by side.
regress read write

Source | SS df MS Number of obs = 200
---------+------------------------------ F( 1, 198) = 109.52
Model | 7450.28755 1 7450.28755 Prob > F = 0.0000
Residual | 13469.1324 198 68.0259215 R-squared = 0.3561
---------+------------------------------ Adj R-squared = 0.3529
Total | 20919.42 199 105.122714 Root MSE = 8.2478

------------------------------------------------------------------------------
read | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
write | .64553 .0616832 10.465 0.000 .5238896 .7671704
_cons | 18.16215 3.307162 5.492 0.000 11.64037 24.68394
------------------------------------------------------------------------------
Here we use outreg to capture the results from the prior model, storing the output in the file test.doc and we suppress the variable labels and indicate we want to replace test.doc if it already existed.
outreg using test.doc, nolabel replace
Now we run our second regression model.
regress read math write

Source | SS df MS Number of obs = 200
---------+------------------------------ F( 2, 197) = 96.80
Model | 10368.63 2 5184.31501 Prob > F = 0.0000
Residual | 10550.79 197 53.5573096 R-squared = 0.4956
---------+------------------------------ Adj R-squared = 0.4905
Total | 20919.42 199 105.122714 Root MSE = 7.3183

------------------------------------------------------------------------------
read | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
math | .5196538 .0703972 7.382 0.000 .380825 .6584826
write | .3283984 .0695792 4.720 0.000 .1911828 .4656141
_cons | 7.541599 3.26819 2.308 0.022 1.096471 13.98673
------------------------------------------------------------------------------
We run outreg again to capture the results of the second model, appending these results to the previous ones in test.doc.
outreg using test.doc, nolabel append
Now we run our third regression model.
regress read science socst math write 

Source | SS df MS Number of obs = 195
---------+------------------------------ F( 4, 190) = 65.23
Model | 11608.8938 4 2902.22346 Prob > F = 0.0000
Residual | 8453.08565 190 44.4899245 R-squared = 0.5787
---------+------------------------------ Adj R-squared = 0.5698
Total | 20061.9795 194 103.412265 Root MSE = 6.6701

------------------------------------------------------------------------------
read | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
science | .2657521 .0648044 4.101 0.000 .1379236 .3935806
socst | .2808959 .0581116 4.834 0.000 .1662691 .3955227
math | .2961578 .0743467 3.983 0.000 .1495068 .4428087
write | .1141745 .0724559 1.576 0.117 -.0287468 .2570959
_cons | 2.001966 3.163988 0.633 0.528 -4.239088 8.243021
------------------------------------------------------------------------------
We run outreg again to capture the results of the third model.
outreg using test.doc, nolabel append
The contents of test.doc look like those below. Tabs are used between columns to get the columns to line up, so you will need to adjust your tab settings to get the tables to look as you desire.We have manually adjusted the spacing to show the columns properly.
 (1) (2) (3)
read read read
write 0.646 0.328 0.114
(10.47)** (4.72)** (1.58)
math 0.520 0.296
(7.38)** (3.98)**
science 0.266
(4.10)**
socst 0.281
(4.83)**
Constant 18.162 7.542 2.002
(5.49)** (2.31)* (0.63)
Observations 200 200 195
R-squared 0.36 0.50 0.58
Absolute value of t-statistics in parentheses
* significant at 5% level; ** significant at 1% level

Report an error on this page

7
gaojizu 发表于 2006-2-22 22:37:00
我把mktab的ado文件放到了

BASE: C:\Stata8\ado\base\m\

目录下,还是显示如下.

use "C:\us90.dta", clear

. reg gdpgr consgr invgr

Source | SS df MS Number of obs = 11
-------------+------------------------------ F( 2, 8) = 22.96
Model | 9.40640743 2 4.70320372 Prob > F = 0.0005
Residual | 1.63904709 8 .204880886 R-squared = 0.8516
-------------+------------------------------ Adj R-squared = 0.8145
Total | 11.0454545 10 1.10454545 Root MSE = .45264

------------------------------------------------------------------------------
gdpgr | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
consgr | .2796674 .2460162 1.14 0.289 -.2876469 .8469817
invgr | .2975689 .1056786 2.82 0.023 .0538736 .5412641
_cons | .3746652 .5224542 0.72 0.494 -.8301164 1.579447
------------------------------------------------------------------------------

. outreg gdpgr consgr invgr
unrecognized command: outreg
r(199);

.

outreg gdpgr consgr invgr
unrecognized command: outreg
r(199);
请指正

8
蓝色 发表于 2006-2-23 07:55:00
你可能没有安装outreg的命令

9
gaojizu 发表于 2006-2-23 13:30:00
以下是引用蓝色在2006-2-23 7:55:00的发言:
你可能没有安装outreg的命令

你的意思是说,没有把ado文件放到指定的目录里面(我放了)?还是没有敲入outreg 命令(我写了)?还是需要其他的命令步骤?或者是需要安装其他文件?

10
undertakeQQ 发表于 2006-4-21 17:12:00

我也有同樣的問題...謝謝以上的說明...受用無窮!!

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-1 00:57