rnzp {aster}R Documentation

The Non-Zero Poisson Distribution

Description

Random generation for the Poisson distribution with parameter mu conditioned on being non-zero. If xpred is not one, then random variate is the sum of xpred such random variates.

Usage

rnzp(n, mu, xpred = 1)

Arguments

n number of random values to return. If length(n) > 1, the length is taken to be the number required.
xpred number of trials.
mu vector of positive means.

Value

a vector of random deviates.

Examples

rnzp(10, 0.2)

[Package aster version 0.4-1 Index]