ran.nb: Generate negative binomial random samples.

Description Usage Arguments Value See Also Examples

Description

A simple function to generate negative binomial random samples using rnbinom.

Usage

1
ran.nb(par, nsamp)

Arguments

par

A numeric vector of length 2. The first is the mean and the second is the dispersion parameter, which is the reciprocal of size in rnbinom.

nsamp

An integer indicating the sample size.

Value

A numerical vector of negative binomial random sample.

See Also

ran.poi, NBsimu, sample.nb

Examples

1
2
par= c(5, 0.2)
ran.nb(par, 5)

lunge111/intSEQ documentation built on May 20, 2019, 9:38 a.m.