dnbinom(x, n, p) pnbinom(x, n, p) qnbinom(x, n, p) rnbinom(x, n, p)
n and p. dnbinom
gives the density, pnbinom gives the distribution function
qnbinom gives the quantile function and rnbinom generates
random deviates.
The negative binomial distribution has density
Equations will come with HTML3
for x = 0, 1, 2, ...