dzinb_2: Zero-inflated Negative Binomial Probability Mass

View source: R/zeroInflatedNegativeBinomial.R

dzinb_2R Documentation

Zero-inflated Negative Binomial Probability Mass

Description

Zero-inflated Negative Binomial Probability Mass

Usage

dzinb_2(x, mu, phi, pi, log = FALSE)

Arguments

x

vector of (non-negative integer) values.

mu

mean of the distribution.

phi

dispersion parameter.

pi

vector of (real lying in [0, 1]) zero-inflation parameters.

log

logical; if TRUE, probabilities, p, are given as log(p).

Value

The (log) probability mass at x, given mu, phi and pi.


PRIMER-e/probabilityDistributions documentation built on Jan. 4, 2023, 10:32 a.m.