rztpois: Randomly generates values from a zero-truncated Poisson...

View source: R/rztpois.R

rztpoisR Documentation

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 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(s)

Len Thomas


dsims documentation built on April 4, 2025, 3:33 a.m.