tp_dat: Generation of truncated Poisson data

Description Usage Arguments Details Author(s) Examples

View source: R/tp_dat.R

Description

This function generates truncated Poisson data, with a truncation at c (counts can include c).

Usage

1
tp_dat(n, lambda, c)

Arguments

n

The number of data points to be generated.

lambda

The mean parameter for the truncated Poisson.

c

The cutoff of inflation.

Details

This generates data from a right truncated Poisson distribution, where generated y's are in the range 0 ≤ y ≤ c.

Author(s)

Michael Floren

Examples

1
2
#show a histogram of right truncated Poisson data
hist(tp_dat(n=3000, lambda=3, c=5))

flor3652/BigD documentation built on Aug. 3, 2019, 7:27 p.m.