rgnzp: Density, distribution function, quantile function and random...

Description Usage Arguments Details Value Author(s) Examples

View source: R/rgnzp.R

Description

Formula and etc.

Usage

1
rgnzp(n, lambda, alpha = 0)

Arguments

n

Number of observations to be generated.

lambda

Vector that represents the mean (expected value) of the distribution (lambda > 0).

alpha

Vector that represents the dispersion parameter of the distribution. Values of alpha > 0 implies in overdispersion while alpha < 0 implies in subdispersion. When alpha = 0, the Generalized Poisson reduces to the Poisson distribution.

Details

The function to generate random numbers is implemented in C++.

Value

rgnzp returns a vector of random generated numbers.

Author(s)

Walmes Zeviani, walmes@ufpr.br.

Examples

1
rgnzp(n = 10, lambda = 5, alpha = 0)

JrEduardo/CountReg documentation built on May 7, 2019, 12:04 p.m.