Learn R Programming

mads (version 0.1.6)

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