poisrand: Simulating Poisson Processes

Description Usage Arguments Value Examples

Description

Generate n simulations of a Poisson Distribution. See Example 4.8.2 on page 295 of 8th edition.

Usage

1
poisrand(n, lambda)

Arguments

n

Iterations to repeat (number of simulations).

lambda

Mean variable in function.

Value

Vector of realizations from poisson distribution.

Examples

1
2
3
4
5
6
7
# Example where parameters are passed in as variables.
n <- 1000
lambda <- 5
result <- poisrand(n, lambda)

# Example where parameters are passed in as values.
result <- poisrand(1000, 5)

joemckean/mathstat documentation built on May 30, 2019, 2:01 p.m.