rpois | R Documentation |
Generates multinomial or multi-Poission random variates based on an Aitchison composition.
rpois.ccomp(n,p,lambda)
rmultinom.ccomp(n,p,N)
n |
number of datasets to be simulated |
p |
The composition representing the probabilites/portions of the individual parts |
lambda |
scalar or vector giving the expected total count |
N |
scalar or vector giving the total count |
A count composition is a realisation of a multinomial or multivariate Poisson distribution.
a random dataset ccount dataset
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
rnorm.ccomp
p <- acomp(c(3,3,3))
rpois.ccomp(10,p,40)
rmultinom.ccomp(10,p,40)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.