A zero inflated poisson distribution.
Usage
zero_inflated_poisson(lambda, pi, dim = NULL)
Arguments
- lambda
rate parameter
- pi
proportion of zeros
- dim
a scalar giving the number of rows in the resulting greta array
Examples
if (FALSE) { # \dontrun{
zip <- zero_inflated_poisson(lambda = 2, pi = 0.2)
calculate(zip, nsim = 10)
mcmc(m)
} # }