Density values of a generalised Dirichlet distribution | R Documentation |
Density values of a generalised Dirichlet distribution.
dgendiri(x, a, b, logged = TRUE)
x |
A matrix containing compositional data. This can be a vector or a matrix with the data. |
a |
A numerical vector with the shape parameter values of the Gamma distribution. |
b |
A numerical vector with the scale parameter values of the Gamma distribution. |
logged |
A boolean variable specifying whether the logarithm of the density values to be returned. It is set to TRUE by default. |
The density of the Dirichlet distribution for a vector or a matrix of compositional data is returned.
A vector with the density values.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Ng Kai Wang, Guo-Liang Tian and Man-Lai Tang (2011). Dirichlet and related distributions: Theory, methods and applications. John Wiley & Sons.
Aitchison J. (1986). The statistical analysis of compositional data. Chapman & Hall.
ddiri, rgendiri, diri.est, diri.contour, rdiri, dda
a <- c(1, 2, 3)
b <- c(2, 3, 4)
x <- rgendiri(100, a, b)
y <- dgendiri(x, a, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.