powered by
Generates random compositions with a uniform distribution on the (rcomp) simplex.
runif.acomp(n,D) runif.rcomp(n,D)
a generated random dataset of class "acomp" or "rcomp"
"acomp"
"rcomp"
drawn from a uniform distribution on the simplex of D parts.
number of datasets to be simulated
number of parts
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
Aitchison, J. (1986) The Statistical Analysis of Compositional Data Monographs on Statistics and Applied Probability. Chapman & Hall Ltd., London (UK). 416p.
rDirichlet.acomp
plot(runif.acomp(10,3)) plot(runif.rcomp(10,3))
Run the code above in your browser using DataLab