expgeom(VGAM)
expgeom()所属R语言包:VGAM
The Exponential Geometric Distribution
指数的几何分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, distribution function, quantile function and random generation for the exponential geometric distribution.
密度,分布函数,指数的几何分布的分位数函数随机生成。
用法----------Usage----------
dexpgeom(x, scale = 1, shape, log = FALSE)
pexpgeom(q, scale = 1, shape)
qexpgeom(p, scale = 1, shape)
rexpgeom(n, scale = 1, shape)
参数----------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的长度是所需的数量。
参数:scale, shape
positive scale and shape parameters.
积极的尺度和形状参数。
参数:log
Logical. If log = TRUE then the logarithm of the density is returned.
逻辑。如果log = TRUE然后返回的密度的对数。
Details
详细信息----------Details----------
See expgeometric, the VGAM family function for estimating the parameters, for the formula of the probability density function and other details.
expgeometric,的VGAM的家庭功能的参数估计,公式的概率密度函数和其他细节。
值----------Value----------
dexpgeom gives the density, pexpgeom gives the distribution function, qexpgeom gives the quantile function, and rexpgeom generates random deviates.
dexpgeom给出了密度,pexpgeom给出了分布函数,qexpgeom给出了分位数的功能,和rexpgeom随机产生的偏离。
注意----------Note----------
We define scale as the reciprocal of the scale parameter used by Adamidis and Loukas (1998).
我们定义scale为规模参数用于由Adamidis和Loukas(1998)的倒数。
(作者)----------Author(s)----------
J. G. Lauder and T. W. Yee
参见----------See Also----------
expgeometric, exponential, geometric.
expgeometric,exponential,geometric。
实例----------Examples----------
## Not run: [#不运行:]
shape = 0.5; scale = 1; nn = 501
x = seq(-0.10, 3.0, len = nn)
plot(x, dexpgeom(x, scale, shape), type = "l", las = 1, ylim = c(0, 2),
ylab = paste("[dp]expgeom(shape = ", shape, ", scale = ", scale, ")"),
col = "blue", cex.main = 0.8,
main = "Blue is density, red is cumulative distribution function",
sub = "Purple lines are the 10,20,...,90 percentiles")
lines(x, pexpgeom(x, scale, shape), col = "red")
probs = seq(0.1, 0.9, by = 0.1)
Q = qexpgeom(probs, scale, shape)
lines(Q, dexpgeom(Q, scale, shape), col = "purple", lty = 3, type = "h")
lines(Q, pexpgeom(Q, scale, shape), col = "purple", lty = 3, type = "h")
abline(h = probs, col = "purple", lty = 3)
max(abs(pexpgeom(Q, scale, shape) - probs)) # Should be 0[应为0]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|