Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fd.density

Density of the Flexible Dirichlet distribution


Description

Density of the Flexible Dirichlet distribution

Usage

fd.density(x, alpha, prob, tau)

Arguments

x

A vector or a matrix with compositional data.

alpha

A vector of the non-negative alpha parameters.

prob

A vector of the clusters' probabilities. It must sum to one.

tau

The non-negative scalar tau parameter.

Details

For more information see the references.

Value

The density value(s).

Author(s)

Michail Tsagris ported from the R package FlexDir. mtsagris@uoc.gr.

References

Ongaro A. and Migliorati S. (2013). A generalization of the Dirichlet distribution. Journal of Multivariate Analysis, 114, 412–426.

Migliorati S., Ongaro A. and Monti G. S. (2017). A structured Dirichlet mixture model for compositional data: inferential and applicative issues. Statistics and Computing, 27, 963–983.

See Also

Examples

alpha <- c(12, 11, 10)
prob <- c(0.25, 0.25, 0.5)
tau <- 8
x <- rfd(20, alpha, prob, tau)
fd.density(x, alpha, prob, tau)

Compositional

Compositional Data Analysis

v4.6
GPL (>= 2)
Authors
Michail Tsagris [aut, cre], Giorgos Athineou [aut], Abdulaziz Alenazi [ctb]
Initial release
2021-04-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.