runif | R Documentation |
Generates random compositions with a uniform distribution on the (rcomp) simplex.
runif.acomp(n,D)
runif.rcomp(n,D)
n |
number of datasets to be simulated |
D |
number of parts |
a generated random dataset of class "acomp"
or "rcomp"
drawn from a uniform distribution on the simplex of D parts.
The only difference between both routines is the class of the dataset returned.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.