qmoezipf: Quantile function of the distribution.

Description Usage Arguments Details Value References Examples

View source: R/qmoezipf.R

Description

Computes the inverse cumulative function for a given vector of probabilities p. It requires the qzipfman function implemented into the tolerance package refered below.

Usage

1
qmoezipf(p, alpha, beta, log.p = FALSE, lower.tail = TRUE)

Arguments

p

Vector of probabilities.

alpha

Value of the α parameter (α > 1).

beta

Value of the β parameter (β > 0).

log.p

Logical; if TRUE, probabilities p are given as log(p).

lower.tail

Logical; if TRUE (default), probabilities are P[X ≤q x], otherwise, P[X > x].

Details

The quantiles of a MOEZipf distribution for a given probability vector p, are obtained by computing the quantiles associated to a Zipf distribution with the same parameter α, and probability vector equal to:

p\prime = \frac{p\,β}{1 + p\,(β - 1)}

Value

Quantiles associated to a given probability vector p.

References

Young, D. S. (2010). Tolerance: an R package for estimating tolerance intervals. Journal of Statistical Software, 36(5), 1-39.

Examples

1
qmoezipf(0.56, 2.5, 1.3)

moezipfR documentation built on May 2, 2019, 3:25 a.m.