The function generates a random sample from poisson, overdispersed poisson, binomial and zero inflated binomial samples.
Arguments
- n
number of simulations to generate
- response
vector of 'true' means to genereate from
- family
one of
poisson
,binomial
orzibinomial
- gamma.variance
variance parameter for
gamma
distribution.- ...
Other parameters required for the family specified
Details
An additional parameter for the Poisson distribution is the dispersion parameter, specified by d=
The additional parameters for the Binomial distribution can be found in ?VGAM::rbinom
The zibinomial family requires the VGAM
library to generate zero inflated binomial data. Additional parameters can be found in the help for rzibinom
.