Skip to contents

A Zero Inflated Negative Binomial distribution

Usage

zero_inflated_negative_binomial(size, prob, pi, dim = NULL)

Arguments

size

positive integer parameter

prob

probability parameter (0 < prob < 1),

pi

proportion of zeros

dim

a scalar giving the number of rows in the resulting greta array

Examples

if (FALSE) { # \dontrun{
zinb <- zero_inflated_negative_binomial(size = 2, prob= 0.2, pi = 0.10)
calculate(zinb, nsim = 10)
m <- model(zinb)
mcmc(m)
} # }