pitnb: pitnb

View source: R/itnb.R

pitnbR Documentation

pitnb

Description

The cumulative 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

pitnb(q, mu, theta, p, i, t = NULL, lower_tail = TRUE, return_log = FALSE)

Arguments

q

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.

lower_tail

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

return_log

TRUE/FALSE: should log of the cmf be returned?

Value

A vector the size as q containing the cumulative probability of each value.


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