全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
8489 4
2014-02-20
我这里有一张抽样得到的表,
现在我指定了一系列的数,想要得到这些数在原样本中排名的分位数
我感觉类似于求样本分位数的反函数,不知道在SAS里该如何实现,谢谢高手解答

二维码

扫码加我 拉你入群

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

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

全部回复
2014-2-20 11:09:58
You may think too much about that. According to empirical distribution function, the sample quantiles should be straightforward. note that the quantiles are not 1 to 1 at all. For example, if you want to get the percentile (in 10th) of weight =102.5 from data set sashelp.class... jingju
复制代码


a=102.5 q=60
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
二维码

扫码加我 拉你入群

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

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

2014-2-20 12:58:14
如果抽样表中有多个数, 可以将抽样表与rank后的原表合并.
复制代码
还可以从rank后的原表直接抽样.


二维码

扫码加我 拉你入群

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

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

2014-2-26 10:38:21
jingju11 发表于 2014-2-20 11:09
You may think too much about that. According to empirical distribution function, the sample quantile ...
多谢回复!

后来我在R里找到了ecdf函数,可以指定一张表生成经验概率密度函数,然后把这个函数赋给一个类似句柄的东西,然后就可以任意指定观测求分位数了

SAS好像没有类似的函数,是不是要自己写了?谢谢!
二维码

扫码加我 拉你入群

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

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

2014-8-4 20:48:14
高人,学习了。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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