Density of the Flexible Dirichlet distribution | R Documentation |
Density of the Flexible Dirichlet distribution
dfd(x, alpha, prob, tau)
x |
A vector or a matrix with compositional data. |
alpha |
A vector of the non-negative |
prob |
A vector of the clusters' probabilities. It must sum to one. |
tau |
The non-negative scalar |
For more information see the references and the package FlxeDir.
The density value(s).
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
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.
rfd
alpha <- c(12, 11, 10)
prob <- c(0.25, 0.25, 0.5)
tau <- 8
x <- rfd(20, alpha, prob, tau)
dfd(x, alpha, prob, tau)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.