Learn R Programming

compositions (version 0.9-11)

rDirichlet: 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

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.

Details

TO DO!!!

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

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

Run the code above in your browser using DataLab