Betageom(VGAM)
Betageom()所属R语言包:VGAM
The Beta-Geometric Distribution
β-几何分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, distribution function, and random generation for the beta-geometric distribution.
密度,分布函数,随机生成的β-几何分布。
用法----------Usage----------
dbetageom(x, shape1, shape2, log = FALSE)
pbetageom(q, shape1, shape2, log.p = FALSE)
rbetageom(n, shape1, shape2)
参数----------Arguments----------
参数:x, q
vector of quantiles.
向量的位数。
参数:n
number of observations. Must be a positive integer of length 1.
若干意见。必须是一个长度为1的正整数。
参数:shape1, shape2
the two (positive) shape parameters of the standard beta distribution. They are called a and b in beta respectively.
两个(正)的标准beta分布的形状参数。他们被称为a和b中beta分别。
参数:log, log.p
Logical. If TRUE then all probabilities p are given as log(p).
逻辑。如果TRUE然后所有的概率p是log(p)。
Details
详细信息----------Details----------
The beta-geometric distribution is a geometric distribution whose probability of success is not a constant but it is generated from a beta distribution with parameters shape1 and shape2. Note that the mean of this beta distribution is shape1/(shape1+shape2), which therefore is the mean of the probability of success.
β-几何分布,几何分布,其成功的概率是不是一个常数,但它产生的β分布参数shape1和shape2。需要注意的是beta分布的平均值,这是shape1/(shape1+shape2),因此成功的概率是平均的。
值----------Value----------
dbetageom gives the density, pbetageom gives the distribution function, and rbetageom generates random deviates.
dbetageom给出了密度,pbetageom给出了分布函数,和rbetageom随机产生的偏离。
注意----------Note----------
pbetageom can be particularly slow.
pbetageom可以特别慢。
(作者)----------Author(s)----------
T. W. Yee
参见----------See Also----------
geometric, betaff, Beta.
geometric,betaff,Beta。
实例----------Examples----------
## Not run: [#不运行:]
shape1 = 1; shape2 = 2; y = 0:30
proby = dbetageom(y, shape1, shape2, log = FALSE)
plot(y, proby, type = "h", col = "blue", ylab = "P[Y=y]", main = paste(
"Y ~ Beta-geometric(shape1=", shape1,", shape2=", shape2,")", sep=""))
sum(proby)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|