QuantileGpois: Computes Quantiles

Description Usage Arguments Value References Examples

View source: R/QuantileGpois.R

Description

QuantileGpois computes the quantile for the generalized Poisson distribution for specified values of percentile, rate, and dispersion parameters.

Usage

1
QuantileGpois(p, theta, lambda, details = FALSE)

Arguments

p

percentile of the generalized Poisson distribution, p should be between 0 and 1.

theta

the rate parameter in the generalized Poisson distribution. It has to be a positive number.

lambda

the dispersion parameter in the generalized Poisson distribution. It has to be less than 1. For lambda < 0, lambda must be greater than or equal to -theta/4.

details

index of whether to display the probabilities and cumulative probabilities. Default is set to FALSE.

Value

Quantile of the specified distribution if the parameter details is set to FALSE, detailed information of probabilities and cumulative probabilities otherwise.

References

Demirtas, H. (2017). On accurate and precise generation of generalized Poisson variates. Communications in Statistics - Simulation and Computation, 46(1), 489-499.

Examples

1
2
 QuantileGpois(0.98, 1, -0.2, details = TRUE)
 QuantileGpois(0.80, 2, 0.025, details = FALSE)

RNGforGPD documentation built on Nov. 18, 2020, 5:08 p.m.