R: The Dirichlet Distribution

Dirichlet {brms} | R Documentation

## The Dirichlet Distribution

### Description

Density function and random number generation for the dirichlet distribution with shape parameter vector `alpha`.

### Usage

    ddirichlet(x, alpha, log = FALSE)

    rdirichlet(n, alpha)

### Arguments

`x` | Matrix of quantiles. Each row corresponds to one probability vector.
`alpha` | Matrix of positive shape parameters. Each row corresponds to one probability vector.
`log` | Logical; If `TRUE`, values are returned on the log scale.
`n` | Number of draws to sample from the distribution.

### Details

See `vignette("brms_families")` for details on the parameterization.

[Package brms version 2.16.3 Index]