powered by
Density of the Dirichlet distribution.
diri.density(x, a, logged = FALSE)
A vector or a matrix with compositional data.
A vector of the non-negative alpha parameterss.
Do you want the logarithm of the density values? TRUE or FALSE.
The density value(s).
fd.density, rdiri, diri.nr
# NOT RUN { a <- runif(3, 1, 5) x <- rdiri(100, a) a <- diri.nr(x)$param x <- diri.density(x, a) # }
Run the code above in your browser using DataLab