全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
901 1
2013-06-09
quietly centile price, centile(10(10)90)sum pe,d, if price<r(c_1)quietly centile price, centile(10(10)90)sum pe,d, if price>r(c_1) & price<r(c_2)quietly centile price, centile(10(10)90)sum pe,d, if price>r(c_2) & price<r(c_3)quietly centile price, centile(10(10)90)sum pe,d, if price>r(c_3) & price<r(c_4)quietly centile price, centile(10(10)90)sum pe,d, if price>r(c_4) & price<r(c_5)quietly centile price, centile(10(10)90)sum pe,d, if price>r(c_5) & price<r(c_6)quietly centile price, centile(10(10)90)sum pe,d, if price>r(c_6) & price<r(c_7)quietly centile price, centile(10(10)90)sum pe,d, if price>r(c_7) & price<r(c_8)quietly centile price, centile(10(10)90)sum pe,d, if price>r(c_8) & price<r(c_9)quietly centile price, centile(10(10)90)sum pe,d, if price>r(c_9)

Sum pe, d之后的结果如下 (有10个结果)

                            pe
-------------------------------------------------------------
      Percentiles      Smallest
1%     7.074977       7.074977
5%     8.768365       8.736852
10%     10.98328       8.768365       Obs                  55
25%     12.47587       9.169458       Sum of Wgt.          55

50%     21.19415                      Mean           34.31474
                        Largest       Std. Dev.      33.03489
75%     47.54674       86.62123
90%     68.54973       109.3018       Variance       1091.304
95%     109.3018       135.4805       Skewness       2.284098
99%     176.8208       176.8208       Kurtosis       8.999681

我想输出所有的Median和mean,在同一个表格中,请问可以实现么?


二维码

扫码加我 拉你入群

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

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

全部回复
2013-6-10 08:36:32
再顶一下下
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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