dirichlet {LaMa} | R Documentation |
Dirichlet distribution
Description
Density of the Dirichlet distribution.
Usage
ddirichlet(x, alpha, log = TRUE)
Arguments
x |
vector or matrix of quantiles |
alpha |
vector or matrix of shape parameters |
log |
logical; if |
Details
This implementation of ddirichlet
allows for automatic differentiation with RTMB
.
Value
ddirichlet
gives the density.
Examples
ddirichlet(c(0.2, 0.3, 0.5), c(1, 2, 3))
[Package LaMa version 2.0.5 Index]