dgendiri: Density values of a generalised Dirichlet distribution

View source: R/dgendiri.R

Density values of a generalised Dirichlet distributionR Documentation

Density values of a generalised Dirichlet distribution

Description

Density values of a generalised Dirichlet distribution.

Usage

dgendiri(x, a, b, logged = TRUE)

Arguments

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.

Details

The density of the Dirichlet distribution for a vector or a matrix of compositional data is returned.

Value

A vector with the density values.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

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.

See Also

ddiri, rgendiri, diri.est, diri.contour, rdiri, dda

Examples

a <- c(1, 2, 3)
b <- c(2, 3, 4)
x <- rgendiri(100, a, b)
y <- dgendiri(x, a, b)

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.