
Density, distribution function, quantile function and random
generation for Haight's zeta distribution with parameter
shape
.
dhzeta(x, shape, log = FALSE)
phzeta(q, shape, log.p = FALSE)
qhzeta(p, shape)
rhzeta(n, shape)
dhzeta
gives the density,
phzeta
gives the distribution function,
qhzeta
gives the quantile function, and
rhzeta
generates random deviates.
T. W. Yee and Kai Huang
The probability function is
hzeta
,
zeta
,
zetaff
,
simulate.vlm
.
dhzeta(1:20, 2.1)
rhzeta(20, 2.1)
round(1000 * dhzeta(1:8, 2))
table(rhzeta(1000, 2))
if (FALSE) shape <- 1.1; x <- 1:10
plot(x, dhzeta(x, shape = shape), type = "h", ylim = 0:1,
sub = paste("shape =", shape), las = 1, col = "blue",
ylab = "Probability", lwd = 2,
main = "Haight's zeta: blue = density; orange = CDF")
lines(x+0.1, phzeta(x, shape = shape), col = "orange", lty = 3, lwd = 2,
type = "h")
Run the code above in your browser using DataLab