Skip to contents

Probability function of a random variable with Generalized Poisson distribution.

Usage

dgp(y, mu, phi)

Arguments

y

Vector of integer values, with \(y \geq 0\).

mu

The mean parameter, with \(\mu > 0\).

phi

The dispersion parameter, with \(\phi \geq 0\).

Value

Vector of probability values of \(Y = y\).

See also

Examples

pg(0L:100L, mu = 0.5, phi = 0.7) |> sum()
#> Error in pg(0L:100L, mu = 0.5, phi = 0.7): could not find function "pg"