% Generated by roxygen2: do not edit by hand
\name{dnbinom}
\alias{dnbinom}
\alias{pnbinom}
\alias{qnbinom}
\alias{rnbinom}
\title{The Negative Binomial Distribution}
\arguments{
  \item{x}{Number of failures until a target number of successes (size) is reached}
  \item{size}{number of successful trials}
  \item{prob}{probability of success
}
}

\details{
Compute the probability mass at a point (x = 4)
\code{dnbinom(4, size = 5, prob = .5)}

Compute the cumulative probability up to a point (x <= 4)
\code{pnbinom(4, size = 5, prob = .5)}

Compute the 95th percentile
\code{qnbinom(.95, size = 50, prob = .5)}

Generate draws (n = 10)
\code{rnbinom(10, size = 5, prob = .5)}}

