楼主: blue精灵
17118 4

[其他] (求助)数据描述 [推广有奖]

  • 0关注
  • 0粉丝

初中生

19%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
130 点
帖子
18
精华
0
在线时间
4 小时
注册时间
2009-2-3
最后登录
2017-10-1

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我想描述下各个变量的mean median sd min max, 如果用sum语言的话 不能现实median 所以用了tabstat但是出现了以下问题

. by geep sort : tabstat ni  lev tu
> rn cf by(GAAP) stat(mean median sd min max) columns(variables)
-----------------------------------------------------------------------------------
-> gaap = 0
factor variables and time-series operators not allowed


我的数据是pannel  data , 而且gaap只能等于0或等于1

但是我不知道怎么解决这个问题, 求好心人帮忙
二维码

扫码加我 拉你入群

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

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

关键词:time-series Variables operators Variable operator median 好心人 我不知道 而且

沙发
herbertzhao 发表于 2011-7-22 10:58:54 |只看作者 |坛友微信交流群
summarize可以实现。
  1. Saved results

  2.     summarize saves the following in r():

  3.     Scalars   
  4.       r(N)           number of observations
  5.       r(mean)        mean
  6.       r(skewness)    skewness (detail only)
  7.       r(min)         minimum
  8.       r(max)         maximum
  9.       r(sum_w)       sum of the weights
  10.       r(p1)          1st percentile (detail only)
  11.       r(p5)          5th percentile (detail only)
  12.       r(p10)         10th percentile (detail only)
  13.       r(p25)         25th percentile (detail only)
  14.       r(p50)         50th percentile (detail only)
  15.       r(p75)         75th percentile (detail only)
  16.       r(p90)         90th percentile (detail only)
  17.       r(p95)         95th percentile (detail only)
  18.       r(p99)         99th percentile (detail only)
  19.       r(Var)         variance
  20.       r(kurtosis)    kurtosis (detail only)
  21.       r(sum)         sum of variable
  22.       r(sd)          standard deviation
复制代码
用detail option
  1. sum varlist, de
复制代码

使用道具

藤椅
glacierccer 发表于 2011-7-22 11:28:32 |只看作者 |坛友微信交流群
根据报错的信息“factor variables and time-series operators not allowed”, 错误应该在
“by geep sort :”这一部分,你换成“bysort geep: " 试试?

使用道具

板凳
qbc 发表于 2011-7-22 17:50:29 |只看作者 |坛友微信交流群
sum var,d 就可以了

使用道具

报纸
lavendercao 发表于 2011-7-29 09:36:23 |只看作者 |坛友微信交流群
不错啊,学习了。

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-14 03:25