Posnorm(VGAM)
Posnorm()所属R语言包:VGAM
The Positive-Normal Distribution
正正态分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, distribution function, quantile function and random generation for the univariate positive-normal distribution.
密度,分布函数,为单变量正正态分布的分位数的功能和随机生成。
用法----------Usage----------
dposnorm(x, mean = 0, sd = 1, log = FALSE)
pposnorm(q, mean = 0, sd = 1)
qposnorm(p, mean = 0, sd = 1)
rposnorm(n, mean = 0, sd = 1)
参数----------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的长度是所需的数量。
参数:mean, sd, log
see rnorm.
看到rnorm。
Details
详细信息----------Details----------
See posnormal1, the VGAM family function for estimating the parameters, for the formula of the probability density function and other details.
posnormal1,的VGAM的家庭功能的参数估计,公式的概率密度函数和其他细节。
值----------Value----------
dposnorm gives the density, pposnorm gives the distribution function, qposnorm gives the quantile function, and rposnorm generates random deviates.
dposnorm给出了密度,pposnorm给出了分布函数,qposnorm给出了分位数的功能,和rposnorm随机产生的偏离。
(作者)----------Author(s)----------
T. W. Yee
参见----------See Also----------
posnormal1.
posnormal1。
实例----------Examples----------
## Not run: m = 0.8; x = seq(-1, 4, len = 501)[#不执行:M = 0.8,X = SEQ(1,4,LEN = 501)]
plot(x, dposnorm(x, m = m), type = "l", ylim = 0:1, las = 1,
ylab = paste("posnorm(m = ", m, ", sd = 1)"), col = "blue",
main = "Blue is density, red is cumulative distribution function",
sub = "Purple lines are the 10,20,...,90 percentiles")
lines(x, pposnorm(x, m = m), col = "red")
abline(h = 0)
probs = seq(0.1, 0.9, by = 0.1)
Q = qposnorm(probs, m = m)
lines(Q, dposnorm(Q, m = m), col = "purple", lty = 3, type = "h")
lines(Q, pposnorm(Q, m = m), col = "purple", lty = 3, type = "h")
abline(h = probs, col = "purple", lty = 3)
max(abs(pposnorm(Q, m = m) - probs)) # Should be 0[应为0]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|