Density computation of the generalized Poisson distribution {gp}R Documentation

Density computation of the generalized Poisson distribution

Description

Density computation of the generalized Poisson distribution.

Usage

dgp(y, theta, lambda, logged = TRUE)

Arguments

y

A vector with non negative integer values.

theta

The value of the \theta parameter.

lambda

The value of the \lambda parameter.

logged

Should the logarithm of the density values be computed? The default value is TRUE.

Details

The density of the generealized Poisson distribution is computed.

Value

A vector with the logged density values.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

Nikoloulopoulos A.K. & Karlis D. (2008). On modeling count data: a comparison of some well-known discrete distributions. Journal of Statistical Computation and Simulation, 78(3): 437–457.

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

See Also

rgp, pgp

Examples

y <-  rgp(1000, 10, 0.5, method = "Inversion")
a <- gp.mle(y)
f <- dgp(y, a[1], a[2])
sum(f)

[Package gp version 1.1 Index]