powered by
Generates multinomial or multi-Poission random variates based on an Aitchison composition.
rpois.ccomp(n,p,lambda) rmultinom.ccomp(n,p,N)
a random dataset ccount dataset
number of datasets to be simulated
The composition representing the probabilites/portions of the individual parts
scalar or vector giving the expected total count
scalar or vector giving the total count
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
A count composition is a realisation of a multinomial or multivariate Poisson distribution.
rnorm.ccomp
p <- acomp(c(3,3,3)) rpois.ccomp(10,p,40) rmultinom.ccomp(10,p,40)
Run the code above in your browser using DataLab