Last chance! 50% off unlimited learning
Sale ends in
Density, distribution function, quantile function and random
generation for the one-altered zeta distribution with parameter
pobs1
.
doazeta(x, shape, pobs1 = 0, log = FALSE)
poazeta(q, shape, pobs1 = 0)
qoazeta(p, shape, pobs1 = 0)
roazeta(n, shape, pobs1 = 0)
doazeta
gives the density and
poazeta
gives the distribution function,
qoazeta
gives the quantile function, and
roazeta
generates random deviates.
Same Unif
.
Same as Otzeta
).
Probability of (an observed) one, called pobs1 = 0
corresponds
to the response having a 1-truncated zeta distribution.
T. W. Yee
The probability function of pobs1
,
else a 1-truncated
zeta
distribution.
oazeta
,
Oizeta
,
Otzeta
,
zeta
.
shape <- 1.1; pobs1 <- 0.10; x <- (-1):7
doazeta(x, shape = shape, pobs1 = pobs1)
table(roazeta(100, shape = shape, pobs1 = pobs1))
if (FALSE) x <- 0:10
barplot(rbind(doazeta(x, shape = shape, pobs1 = pobs1),
dzeta(x, shape = shape)),
beside = TRUE, col = c("blue", "orange"), cex.main = 0.7, las = 1,
ylab = "Probability", names.arg = as.character(x),
main = paste("OAZ(shape = ", shape, ", pobs1 = ", pobs1,
") [blue] vs", " zeta(shape = ", shape,
") [orange] densities", sep = ""))
Run the code above in your browser using DataLab