Skip to contents

Negative Binomial Cumulative Distribution Function

Usage

prob_neg_binom(x, lambda = 1, theta = 0)

Arguments

x

A numeric vector of quantiles.

lambda

A non-negative numeric vector of means.

theta

A non-negative numeric vector of the dispersion for the mixture models (student, gamma-Poisson and beta-binomial).

Value

An numeric vector of the corresponding probabilities.

Examples

prob_neg_binom(c(0, 1, 2), 2, 1)
#> [1] 0.3333333 0.5555556 0.7037037