rztpois {dsims}R 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


[Package dsims version 1.0.4 Index]