Learn R Programming

ocomposition (version 1.1)

negbinom: Truncated negative binomial distribution function and sampling.

Description

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

Usage

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