gpt4 book ai didi

r - 非参数逆(累积)分布函数

转载 作者:行者123 更新时间:2023-12-04 05:15:53 25 4
gpt4 key购买 nike

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

是否有非参数方法的逆累积分布函数?

我尝试过 Google、ethz 论坛、R 帮助,但似乎缺少它。

最佳答案

听起来您想要 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))

关于r - 非参数逆(累积)分布函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14281656/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com