rzip | R Documentation |
Simulates deviates from a zero-inflated poisson model given the model's parameter values.
rzip(n, lambda, psi)
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 |
A vector of n points from a zero inflated poisson distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.