zipfpss: The Zipf-Poisson Stop Sum Distribution (Zipf-PSS).

Description Usage Arguments Details References

Description

Probability mass function, cumulative distribution function, quantile function and random number generation for the Zipf-PSS distribution with parameters α and λ. The support of the Zipf-PSS distribution are the positive integer numbers including the zero value. In order to work with its zero-truncated version the parameter isTruncated should be equal to True.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
dzipfpss(x, alpha, lambda, log = FALSE, isTruncated = FALSE)

pzipfpss(q, alpha, lambda, log.p = FALSE, lower.tail = TRUE,
  isTruncated = FALSE)

rzipfpss(n, alpha, lambda, log.p = FALSE, lower.tail = TRUE,
  isTruncated = FALSE)

qzipfpss(p, alpha, lambda, log.p = FALSE, lower.tail = TRUE,
  isTruncated = FALSE)

Arguments

x, q

Vector of positive integer values.

alpha

Value of the α parameter (α > 1 ).

lambda

Value of the λ parameter (λ > 0 ).

log, log.p

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

isTruncated

Logical; if TRUE, the zero truncated version of the distribution is returned.

lower.tail

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

n

Number of random values to return.

p

Vector of probabilities.

Details

The support of the λ parameter increases when the distribution is truncated at zero being λ ≥q 0. It has been proved that when λ = 0 one has the degenerated version of the distribution at one.

References

Panjer, H. H. (1981). Recursive evaluation of a family of compound distributions. ASTIN Bulletin: The Journal of the IAA, 12(1), 22-26.

Sundt, B., & Jewell, W. S. (1981). Further results on recursive evaluation of compound distributions. ASTIN Bulletin: The Journal of the IAA, 12(1), 27-39.


zipfextR documentation built on July 8, 2020, 6:23 p.m.