Sample zero-truncated Poisson random samples (basic R)
Arguments
- n
Integer, number of samples
- lambda
Positive number, the mean of the original
(untruncated) Poisson distribution
Value
a vector of non zero counts of size n
Examples
rztpois(10, 1)
#> [1] 1 1 1 3 1 3 3 1 1 1
rztpois(10, 1:10)
#> [1] 2 3 5 3 8 8 9 3 8 12