Betanorm(VGAM)
Betanorm()所属R语言包:VGAM
The Beta-Normal Distribution
β-正态分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, distribution function, quantile function and random generation for the univariate beta-normal distribution.
密度,分布函数,单变量β-正态分布的分位数函数随机生成。
用法----------Usage----------
dbetanorm(x, shape1, shape2, mean=0, sd=1, log=FALSE)
pbetanorm(q, shape1, shape2, mean=0, sd=1, lower.tail=TRUE, log.p=FALSE)
qbetanorm(p, shape1, shape2, mean=0, sd=1)
rbetanorm(n, shape1, shape2, mean=0, sd=1)
参数----------Arguments----------
参数:x, q
vector of quantiles.
向量的位数。
参数:p
vector of probabilities.
向量的概率。
参数: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 respectively in beta.
两个(正)的标准beta分布的形状参数。他们被称为a和b分别在beta。
参数:mean, sd
the mean and standard deviation of the univariate normal distribution (Normal).
单变量的正态分布的均值和标准偏差(Normal)。
参数:log, log.p
Logical. If TRUE then all probabilities p are given as log(p).
逻辑。如果TRUE然后所有的概率p是log(p)。
参数:lower.tail
Logical. If TRUE then the upper tail is returned, i.e., one minus the usual answer.
逻辑。如果TRUE然后返回尾巴上,即减去通常的答案。
Details
详细信息----------Details----------
The function betanormal1, the VGAM family function for estimating the parameters, has not yet been written.
的功能betanormal1,VGAM家庭功能的参数估计,有尚未被写入。
值----------Value----------
dbetanorm gives the density, pbetanorm gives the distribution function, qbetanorm gives the quantile function, and rbetanorm generates random deviates.
dbetanorm给出了密度,pbetanorm给出了分布函数,qbetanorm给出了分位数的功能,和rbetanorm随机产生的偏离。
(作者)----------Author(s)----------
T. W. Yee
参考文献----------References----------
Gupta, A. K. and Nadarajah, S. (2004) Handbook of Beta Distribution and Its Applications, New York: Marcel Dekker.
实例----------Examples----------
## Not run: [#不运行:]
shape1 = 0.1; shape2 = 4; m = 1
x = seq(-10, 2, len=501)
plot(x, dbetanorm(x, shape1, shape2, m=m), type="l", ylim=0:1, las=1,
ylab=paste("betanorm(",shape1,", ",shape2,", m=",m, ", sd=1)", sep=""),
main="Blue is density, red is cumulative distribution function",
sub="Purple lines are the 10,20,...,90 percentiles", col="blue")
lines(x, pbetanorm(x, shape1, shape2, m=m), col="red")
abline(h=0)
probs = seq(0.1, 0.9, by=0.1)
Q = qbetanorm(probs, shape1, shape2, m=m)
lines(Q, dbetanorm(Q, shape1, shape2, m=m), col="purple", lty=3, type="h")
lines(Q, pbetanorm(Q, shape1, shape2, m=m), col="purple", lty=3, type="h")
abline(h=probs, col="purple", lty=3)
pbetanorm(Q, shape1, shape2, m=m) - probs # Should be all 0[应该是0]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|