rinflmix: Generate variates from the OIPPMM.

Description Usage Arguments Value See Also Examples

View source: R/rinflmix.R

Description

Generate variates from the OIPPMM.

Usage

1
rinflmix(n, l, p)

Arguments

n

the desired sample size

l

lambda, a vector of positive Poisson mixture components

p

pi, a vector of weights for the mixture components

Value

returns a list containing y (the generated variates) and n0 (the number of 0s from the Poisson process that were discarded)

See Also

inflmix, rinflmixN

Examples

1
2
y <- rinflmix(n=50, l=c(1,4), p=c(.4,.4))$y
inflmix(y)

rtgodwin/inflmix documentation built on May 27, 2019, 2:10 p.m.