test4 {mcsm}R Documentation

Replicate Poisson generator

Description

This function is a front-end for the standard {rpois} Poisson generator.

Usage

test4(Nsim = 10^4, lambda = 100)

Arguments

Nsim Number of simulations
lambda Poisson parameter

Details

This function replicates rpois(Nsim,lambda) and thus should not be used.

Value

This function produces a integer vector of size Nsim.

Author(s)

Christian P. Robert and George Casella

References

From Chapter 2 of EnteR Monte Carlo Statistical Methods

See Also

test3,rpois

Examples

mean(test4())
# produces [1] 100.0273

[Package mcsm version 1.0 Index]