Learn R Programming

DSsim (version 1.1.4)

rtpois: Randomly generates values from a zero-truncated Poisson distribution

Description

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

Usage

rtpois(N, mean = NA)

Arguments

N

number of values to randomly generate

mean

mean of the generated values