ditnb: ditnb

View source: R/itnb.R

ditnbR Documentation

ditnb

Description

The probability of each element in a vector x following the i-inflated t-truncated negative binomial distribution with parameters mu, theta, and p which is inflated at i and truncated at t.

Usage

ditnb(x, mu, theta, p, i = 0, t = 0, lower_tail = TRUE, return_log = FALSE)

Arguments

x

Numeric: A vector of quantiles.

mu

Numeric: The expected value.

theta

Numeric: The overdispersion.

p

Numeric: The inflation proportion.

i

Numeric: The inflation point.

t

Numeric: The truncation point (NB: can be set to NULL).

lower_tail

TRUE/FALSE: should P[X \leq x] be returned in favour ofP[X \geq x]?

return_log

TRUE/FALSE: should the logarithm of the probabilities be returned?

Value

A vector the size as x containing the probability of each value.


svilsen/itnb documentation built on Sept. 7, 2024, 1:30 a.m.