rpmd: Poisson-Multinomial Distribution Random Number Generator
Description
Generates random samples from the PMD specified by the success probability matrix.
Usage
rpmd(pmat, s = 1)
Value
An \(s \times m\) matrix of samples, each row stands for one sample from the PMD with success probability matrix pmat.
Arguments
pmat
An \(\rm n \times m\) success probability matrix, where \(\rm n\) is the number of independent trials and \(\rm m\) is the number of categories.
Each row of pmat contains the success probabilities for the corresponding
trial, and each row adds up to 1.