rzip: Zero-Inflated Poisson Random Number Generation

View source: R/functions.R

rzipR Documentation

Zero-Inflated Poisson Random Number Generation

Description

Simulates deviates from a zero-inflated poisson model given the model's parameter values.

Usage

rzip(n, lambda, psi)

Arguments

n

The integer number of deviates to generate

lambda

The vector of means for each observation. Must have the same length n, or be of length 1 for constant means

psi

The probability of being from the poisson distribution as opposed to being an 'inflated' 0

Value

A vector of n points from a zero inflated poisson distribution


calliste-fagard-jenkin/GAI documentation built on July 26, 2022, 11:20 a.m.