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

runif

The uniform distribution on the simplex


Description

Generates random compositions with a uniform distribution on the (rcomp) simplex.

Usage

runif.acomp(n,D)
runif.rcomp(n,D)

Arguments

n

number of datasets to be simulated

D

number of parts

Value

a generated random dataset of class "acomp" or "rcomp" drawn from a uniform distribution on the simplex of D parts.

Note

The only difference between both routines is the class of the dataset returned.

Author(s)

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

References

Aitchison, J. (1986) The Statistical Analysis of Compositional Data Monographs on Statistics and Applied Probability. Chapman & Hall Ltd., London (UK). 416p.

See Also

Examples

plot(runif.acomp(10,3))
plot(runif.rcomp(10,3))

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.