ran.poi: Generate Poisson random sample.

Description Usage Arguments Value Author(s) See Also Examples

Description

A simple function to generate Poisson random samples using rpois.

Usage

1
ran.poi(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. The second parameter will not be used in simulation.

nsamp

An integer indicating the sample size.

Value

A numerical vector of Poisson random sample.

Author(s)

Yilun Zhang, David Rocke

See Also

ran.nb, NBsimu, sample.nb

Examples

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

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