rDirichlet {compositions}R Documentation

Dirichlet distribution

Description

The Dirichlet distribution on the simplex.

Usage

rDirichlet.acomp(n,alpha)
rDirichlet.rcomp(n,alpha)

          

Arguments

n number of datasets to be simulated
alpha parameters of the Dirichlet distribution

Details

TO DO!!!

Value

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.

References

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

See Also

rnorm.acomp

Examples

tmp <- rDirichlet.acomp(10,alpha=c(A=2,B=0.2,C=0.2))
plot(tmp)

[Package compositions version 0.9-10 Index]