Triangle(VGAM)
Triangle()所属R语言包:VGAM
The Triangle Distribution
三角形分布
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, distribution function, quantile function and random generation for the Triangle distribution with parameter theta.
密度,分布函数,分位数函数和随机生成的三角形分布参数theta。
用法----------Usage----------
dtriangle(x, theta, lower = 0, upper = 1, log = FALSE)
ptriangle(q, theta, lower = 0, upper = 1)
qtriangle(p, theta, lower = 0, upper = 1)
rtriangle(n, theta, lower = 0, upper = 1)
参数----------Arguments----------
参数:x, q
vector of quantiles.
向量的位数。
参数:p
vector of probabilities.
向量的概率。
参数:n
number of observations. Must be a positive integer of length 1.
若干意见。必须是一个长度为1的正整数。
参数:theta
the theta parameter which lies between lower and upper.
位于之间lower和upper的theta参数。
参数:lower, upper
lower and upper limits of the distribution. Must be finite.
的上限和下限的分布。必须是有限的。
参数:log
Logical. If log = TRUE then the logarithm of the density is returned.
逻辑。如果log = TRUE然后返回的密度的对数。
Details
详细信息----------Details----------
See triangle, the VGAM family function for estimating the parameter theta by maximum likelihood estimation.
triangle,的VGAM的估计的参数theta通过最大似然估计的家庭功能的。
值----------Value----------
dtriangle gives the density, ptriangle gives the distribution function, qtriangle gives the quantile function, and rtriangle generates random deviates.
dtriangle给出了密度,ptriangle给出了分布函数,qtriangle给出了分位数的功能,和rtriangle随机产生的偏离。
(作者)----------Author(s)----------
T. W. Yee
参见----------See Also----------
triangle.
triangle。
实例----------Examples----------
## Not run: x = seq(-0.1, 1.1, by = 0.01); theta = 0.75[#不运行:X = SEQ(0.1,1.1,= 0.01),θ= 0.75]
plot(x, dtriangle(x, theta = theta), type = "l", col = "blue", las = 1,
main = "Blue is density, orange is cumulative distribution function",
sub = "Purple lines are the 10,20,...,90 percentiles",
ylim = c(0,2), ylab = "")
abline(h = 0, col = "blue", lty = 2)
lines(x, ptriangle(x, theta = theta), col = "orange")
probs = seq(0.1, 0.9, by = 0.1)
Q = qtriangle(probs, theta = theta)
lines(Q, dtriangle(Q, theta = theta), col = "purple", lty = 3, type = "h")
ptriangle(Q, theta = theta) - probs # Should be all zero[应该是所有零]
abline(h = probs, col = "purple", lty = 3)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|