楼主: emilychou
18474 12

[一般统计问题] 怎样用outreg2输出sum的表格呢? [推广有奖]

11
蓝色 发表于 2013-4-25 00:00:48
. sysuse auto, clear
(1978 Automobile Data)

. outreg2 using D:\exampletest, sum(log) keep(price weight)

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
       price |        74    6165.257    2949.496       3291      15906
         mpg |        74     21.2973    5.785503         12         41
       rep78 |        69    3.405797    .9899323          1          5
    headroom |        74    2.993243    .8459948        1.5          5
       trunk |        74    13.75676    4.277404          5         23
-------------+--------------------------------------------------------
      weight |        74    3019.459    777.1936       1760       4840
      length |        74    187.9324    22.26634        142        233
        turn |        74    39.64865    4.399354         31         51
displacement |        74    197.2973    91.83722         79        425
  gear_ratio |        74    3.014865    .4562871       2.19       3.89
-------------+--------------------------------------------------------
     foreign |        74    .2972973    .4601885          0          1

Following variable is string, not included:  
make  
dir : seeout

. type D:\exampletest.txt
               (1)     (2)     (3)     (4)     (5)     
VARIABLES       N       mean    sd      min     max   
                                                                                
price          74      6,165   2,949   3,291   15,906  
weight         74      3,019   777.2   1,760   4,840   


这就是结果啊,有什么问题吗
                                                                                
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
emilychou + 1 + 1 + 1 热心帮助其他会员

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

12
emilychou 发表于 2013-8-31 02:04:17
蓝色 发表于 2013-4-25 00:00
. sysuse auto, clear
(1978 Automobile Data)
非常感谢!终于弄明白了!
[fly]ilikeuandulikeme[/fly]

13
zrcjglj 发表于 2017-8-5 10:32:19
我试过了,输出的是全部变量,而不是keep()中包括的变量。而且输出的是txt文档,想要输出到excel表格中,应该怎么操作呢?

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

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