非参数反向(累积)分布函数

时间:2013-01-11 15:47:26

标签: r statistics kernel

我正在使用内核估算,我将R中的density函数应用到我的数据文件(双变量),经过几次统计处理后我需要转换这些数据,这就是我的问题:

使用非参数方法是否存在逆累积分布的函数?

我曾尝试使用Google,ethz论坛,R帮助,但似乎缺失了。

1 个答案:

答案 0 :(得分:3)

听起来你想要quantile功能:

# simulate some data
mydata = rnorm(1000)

# print the quantiles at a few points
# (it's the inverse of the cumulative distribution function):
print(quantile(mydata, .5))
print(quantile(mydata, .75))

# show the curve from 0 to 1
curve(quantile(mydata, x))
相关问题