zinbSim {zinbwave} | R Documentation |
Given an object that describes zero-inflated negative binomial distribution, simulate counts from the distribution.
zinbSim(object, seed, ...) ## S4 method for signature 'ZinbModel' zinbSim(object, seed)
object |
an object that describes a matrix of zero-inflated negative binomial. |
seed |
an optional integer to specify how the random number generator
should be initialized with a call to |
... |
additional arguments. |
A list with the following elements.
countsthe matrix with the simulated counts.
dataNBthe data simulated from the negative binomial.
dataDropoutsthe data simulated from the binomial process.
zeroFractionthe fraction of zeros.
ZinbModel
: simulate from a ZINB distribution.
a <- zinbModel(n=5, J=10) zinbSim(a)