GammaCount: Gamma Count Distribution

Description Usage Arguments Author(s) See Also Examples

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

1
2
3
4
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

1
2
3
4
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 May 19, 2017, 4:44 p.m.
Search within the rmutil package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.