ritnb: ritnb

View source: R/itnb.R

ritnbR Documentation

ritnb

Description

Generates n random numbers from a i-inflated t-truncated negative binomial distribution with parameters mu, theta, and p which is inflated at i and truncated at t.

Usage

ritnb(n, mu, theta, p, i, t)

Arguments

n

Numeric: The number of observations.

mu

Numeric: The expected value.

theta

Numeric: The overdispersion.

p

Numeric: The inflation proportion.

i

Numeric: The inflation point.

t

Numeric: The truncation point.

Value

A vector of size n containing realisations of a itnb distribution.


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