The following functions are associated with the negative binomial equation of size n:
• dnbinom(k, n, q)—Returns the probability density for value k.
• pnbinom(k, n, q)—Returns the cumulative probability distribution for value k.
• qnbinom(p, n, q)—Returns the inverse cumulative probability distribution for probability p.
• rnbinom(m, n, p)—Returns a vector of m random numbers having the negative binomial distribution.
Arguments
• n, k are integers, n > 0 and k ≥ 0. To allow integration and other operations over these arguments, values outside of the stated range are allowed, but they produce a 0 result.