rDirichlet {compositions} | R Documentation |
The Dirichlet distribution on the simplex.
rDirichlet.acomp(n,alpha) rDirichlet.rcomp(n,alpha)
n |
number of datasets to be simulated |
alpha |
parameters of the Dirichlet distribution |
TO DO!!!
a generated random dataset of class "acomp"
or "rcomp"
with
drawn from a Dirichlet distribution with the given parameter
alpha
. The names of alpha
are used to name the parts.
K.Gerald v.d. Boogaart http://www.stat.boogaart.de, Raimon Tolosana-Delgado
Aitchison, J. (1986) The Statistical Analysis of Compositional
Data Monographs on Statistics and Applied Probability. Chapman &
Hall Ltd., London (UK). 416p.
tmp <- rDirichlet.acomp(10,alpha=c(A=2,B=0.2,C=0.2)) plot(tmp)