ddirichlet {oeli} | R Documentation |
Compute density of Dirichlet distribution
Description
This function computes the density of a Dirichlet distribution.
Usage
ddirichlet(x, concentration, log = FALSE)
Arguments
x |
A |
concentration |
A |
log |
A |
Value
A numeric
, the density value.
Examples
x <- c(0.5, 0.3, 0.2)
concentration <- 1:3
ddirichlet(x = x, concentration = concentration)
ddirichlet(x = x, concentration = concentration, log = TRUE)
[Package oeli version 0.5.2 Index]