Learn R Programming

Compositional (version 4.1)

Density of the Dirichlet distribution: Density of the Dirichlet distribution

Description

Density of the Dirichlet distribution.

Usage

diri.density(x, a, logged = FALSE)

Arguments

x

A vector or a matrix with compositional data.

a

A vector of the non-negative alpha parameterss.

logged

Do you want the logarithm of the density values? TRUE or FALSE.

Value

The density value(s).

See Also

fd.density, rdiri, diri.nr

Examples

Run this code
# 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