GammaCount: Gamma Count Distribution

Gamma CountR Documentation

Gamma Count Distribution

Description

These functions provide information about the gamma count distribution with parameters m and s: density, cumulative distribution, quantiles, and random generation.

The gamma count distribution with prob = m has density

p(y) = pgamma(m s, y s, 1)-pgamma(m s, (y+1) s, 1)

for y = 0, …, n where pgamma(m s, 0, 1)=1.

Usage

dgammacount(y, m, s, log=FALSE)
pgammacount(q, m, s)
qgammacount(p, m, s)
rgammacount(n, m, s)

Arguments

y

vector of frequencies

q

vector of quantiles

p

vector of probabilities

n

number of values to generate

m

vector of probabilities

s

vector of overdispersion parameters

log

if TRUE, log probabilities are supplied.

Author(s)

J.K. Lindsey

See Also

dpois for the Poisson, dconsul for the Consul generalized Poisson, ddoublepois for the double Poisson, dmultpois for the multiplicative Poisson distributions, and dnbinom for the negative binomial distribution.

Examples

dgammacount(5,10,0.9)
pgammacount(5,10,0.9)
qgammacount(0.08,10,0.9)
rgammacount(10,10,0.9)

rmutil documentation built on Oct. 29, 2022, 1:08 a.m.

Related to GammaCount in rmutil...