zinbSim: Simulate counts from a zero-inflated negative binomial model

Description Usage Arguments Value Methods (by class) Examples

Description

Given an object that describes zero-inflated negative binomial distribution, simulate counts from the distribution.

Usage

1
2
3
4
zinbSim(object, seed, ...)

## S4 method for signature 'ZinbModel'
zinbSim(object, seed)

Arguments

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 set.seed. If missing, the random generator state is not changed.

...

additional arguments.

Value

A list with the following elements.

Methods (by class)

Examples

1
2
a <- zinbModel(n=5, J=10)
zinbSim(a)

zinbwave documentation built on Nov. 8, 2020, 8:11 p.m.