Learn R Programming

FlexDir (version 1.0)

FD.density: The Flexible Dirichlet Density Function

Description

Density function on the simplex for the Flexible Dirichlet distribution with parameters a, p and t.

Usage

FD.density(x, a, p, t)

Arguments

x
vector of a point on the simplex. It must sum to one.
a
vector of the non-negative alpha parameters.
p
vector of the clusters' probabilities. It must sum to one.
t
non-negative scalar tau parameter.

Details

Vectors x, a and p must be of the same length.

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. (2016) A structured Dirichlet mixture model for compositional data: inferential and applicative issues. Statistics and Computing, doi:10.1007/s11222-016-9665-y.

See Also

FD.theorcontours, FD.generate

Examples

Run this code
x <- c(0.1,0.25,0.65)
alpha <- c(12,7,15)
prob <- c(0.3,0.4,0.3)
tau <- 8
FD.density(x,alpha,prob,tau)

Run the code above in your browser using DataLab