Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rpois

Simulate count compositions without overdispersion


Description

Generates multinomial or multi-Poission random variates based on an Aitchison composition.

Usage

rpois.ccomp(n,p,lambda)
rmultinom.ccomp(n,p,N)

Arguments

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

Details

A count composition is a realisation of a multinomial or multivariate Poisson distribution.

Value

a random dataset ccount dataset

Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

See Also

Examples

p <- acomp(c(3,3,3))
rpois.ccomp(10,p,40)
rmultinom.ccomp(10,p,40)

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.