Skip to contents

Generates values from a zero-truncated Poisson distribution with mean equal to that specified. It uses an optimisation routine to check which value of lambda will give values with the requested mean.

Usage

rztpois(n, mean = NA)

Arguments

n

number of values to randomly generate

mean

mean of the generated values

Value

returns a randomly generated value from a zero-truncated Poisson distribution.

Note

Internal function not intended to be called by user.

Author

Len Thomas