Poisson_Sim: Simulation for Poisson Distribution

Description Usage Arguments Author(s) See Also Examples

View source: R/Poisson_Sim.R

Description

A simple function to understand the algorithm to simulate (psuedo-)observations from binomial distribution. It is an implementation of the algorithm given in Section 11.3.1 "Simulation from Discrete Distributions". This function is not an alternative to the "rpois" function.

Usage

1
Poisson_Sim(lambda, n)

Arguments

lambda

rate of the Poisson RV

n

required number of pseudo-observations

Author(s)

Prabhanjan N. Tattar

See Also

rpois

Examples

1
2
set.seed(123)
mean(Poisson_Sim(4,1000))

ACSWR documentation built on May 19, 2017, 6:57 p.m.

Search within the ACSWR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.