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.
See also
Other prob_dist:
prob_bern(),
prob_beta(),
prob_beta_binom(),
prob_binom(),
prob_exp(),
prob_gamma(),
prob_gamma_pois(),
prob_gamma_pois_zi(),
prob_lnorm(),
prob_norm(),
prob_pois(),
prob_pois_zi(),
prob_skewnorm(),
prob_student(),
prob_unif()
Examples
prob_neg_binom(c(0, 1, 2), 2, 1)
#> [1] 0.3333333 0.5555556 0.7037037