Kumar(VGAM)
Kumar()所属R语言包:VGAM
The Kumaraswamy Distribution
Kumaraswamy的分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, distribution function, quantile function and random generation for the Kumaraswamy distribution.
密度,分布函数,分位数为Kumaraswamy的分布的功能和随机生成。
用法----------Usage----------
dkumar(x, shape1, shape2, log = FALSE)
pkumar(q, shape1, shape2)
qkumar(p, shape1, shape2)
rkumar(n, shape1, shape2)
参数----------Arguments----------
参数:x, q
vector of quantiles.
向量的位数。
参数:p
vector of probabilities.
向量的概率。
参数:n
number of observations. If length(n) > 1 then the length is taken to be the number required.
若干意见。如果length(n) > 1的长度是所需的数量。
参数:shape1, shape2
positive shape parameters.
积极形状参数。
参数:log
Logical. If log = TRUE then the logarithm of the density is returned.
逻辑。如果log = TRUE然后返回的密度的对数。
Details
详细信息----------Details----------
See kumar, the VGAM family function for estimating the parameters, for the formula of the probability density function and other details.
kumar,的VGAM的家庭功能的参数估计,公式的概率密度函数和其他细节。
值----------Value----------
dkumar gives the density, pkumar gives the distribution function, qkumar gives the quantile function, and rkumar generates random deviates.
dkumar给出了密度,pkumar给出了分布函数,qkumar给出了分位数的功能,和rkumar随机产生的偏离。
(作者)----------Author(s)----------
T. W. Yee
参见----------See Also----------
kumar.
kumar。
实例----------Examples----------
## Not run: [#不运行:]
shape1 <- 2; shape2 <- 2; nn <- 201; # shape1 = shape2 = 0.5;[shape1 = shape2 = 0.5;]
x <- seq(-0.05, 1.05, len = nn)
plot(x, dkumar(x, shape1, shape2), type = "l", las = 1, ylim = c(0,1.5),
ylab = paste("fkumar(shape1 = ", shape1, ", shape2 = ", shape2, ")"),
col = "blue", cex.main = 0.8,
main = "Blue is density, orange is cumulative distribution function",
sub = "Purple lines are the 10,20,...,90 percentiles")
lines(x, pkumar(x, shape1, shape2), col = "orange")
probs <- seq(0.1, 0.9, by = 0.1)
Q <- qkumar(probs, shape1, shape2)
lines(Q, dkumar(Q, shape1, shape2), col = "purple", lty = 3, type = "h")
lines(Q, pkumar(Q, shape1, shape2), col = "purple", lty = 3, type = "h")
abline(h = probs, col = "purple", lty = 3)
max(abs(pkumar(Q, shape1, shape2) - probs)) # Should be 0[应为0]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|