Poisson_Sim {ACSWR} | R Documentation |
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.
Poisson_Sim(lambda, n)
lambda |
rate of the Poisson RV |
n |
required number of pseudo-observations |
Prabhanjan N. Tattar
rpois
set.seed(123)
mean(Poisson_Sim(4,1000))