Learn R Programming

mcsm (version 1.0)

test4: 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

Value

This function produces a integer vector of size Nsim.

Details

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

References

From Chapter 2 of EnteR Monte Carlo Statistical Methods

See Also

test3,rpois

Examples

Run this code
mean(test4())
# produces [1] 100.0273

Run the code above in your browser using DataLab