negbin: Truncated negative binomial distribution function and...

Description Usage Arguments

Description

Distribution function of truncated negative binomial distribution and random draws from the distribution (uses rejection sampling).

Usage

1
2
dtnegbin(x, mu, dispersion, l.bound)
rtnegbin(N, mu, dispersion, l.bound)

Arguments

x

value at which density is evaluated

mu

mean of the distribution

dispersion

dispersion parameter

l.bound

the lower bound of truncation

N

Number of draws


ocomposition documentation built on May 2, 2019, 3:30 p.m.