Zanegbin(VGAM)
Zanegbin()所属R语言包:VGAM
Zero-Altered Negative Binomial Distribution
改变零负二项分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, distribution function, quantile function and random generation for the zero-altered negative binomial distribution with parameter pobs0.
密度,分布函数,位数的函数和参数pobs0零改变负二项分布随机生成。
用法----------Usage----------
dzanegbin(x, size, prob = NULL, munb = NULL, pobs0 = 0, log = FALSE)
pzanegbin(q, size, prob = NULL, munb = NULL, pobs0 = 0)
qzanegbin(p, size, prob = NULL, munb = NULL, pobs0 = 0)
rzanegbin(n, size, prob = NULL, munb = NULL, pobs0 = 0)
参数----------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的长度是所需的数量。
参数:size, prob, munb, log
Parameters from the ordinary negative binomial distribution (see dnbinom). Some arguments have been renamed slightly.
从普通的负二项分布的参数(见dnbinom“)。稍微有些参数已被重命名。
参数:pobs0
Probability of zero, called pobs0. The default value of pobs0 = 0 corresponds to the response having a positive negative binomial distribution.
概率为零,称为pobs0的。 pobs0 = 0对应的默认值具有积极的负二项分布的响应。
Details
详细信息----------Details----------
The probability function of Y is 0 with probability pobs0, else a positive negative binomial(munb, size) distribution.
Y的概率函数0pobs0,其他的正负的二项式(munb,大小)分布的概率。
值----------Value----------
dzanegbin gives the density and pzanegbin gives the distribution function, qzanegbin gives the quantile function, and rzanegbin generates random deviates.
dzanegbin给出了密度和pzanegbin给出了分布函数,qzanegbin给出了分位数的功能,和rzanegbin随机产生的偏离。
注意----------Note----------
The argument pobs0 is recycled to the required length, and must have values which lie in the interval [0,1].
的参数pobs0被回收到所需的长度,而且必须有趴在区间[0,1]值。
(作者)----------Author(s)----------
Thomas W. Yee
参见----------See Also----------
zanegbinomial, rposnegbin.
zanegbinomial,rposnegbin。
实例----------Examples----------
munb <- 3; size <- 4; pobs0 <- 0.3; x <- (-1):7
dzanegbin(x, munb = munb, size = size, pobs0 = pobs0)
table(rzanegbin(100, munb = munb, size = size, pobs0 = pobs0))
## Not run: x = 0:10[,#未运行:X = 0:10]
barplot(rbind(dzanegbin(x, munb = munb, size = size, pobs0 = pobs0),
dnbinom(x, mu = munb, size = size)),
beside = TRUE, col = c("blue","green"), cex.main = 0.7, las = 1,
ylab = "Probability",names.arg = as.character(x),
main = paste("ZANB(munb = ", munb, ", size = ", size,",
pobs0 = ", pobs0,
") [blue] vs", " NB(mu = ", munb, ", size = ", size,
") [green] densities", sep = ""))
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|