Dirichlet | R Documentation |
Density function and random number generation for the dirichlet
distribution with shape parameter vector alpha
.
ddirichlet(x, alpha, log = FALSE)
rdirichlet(n, alpha)
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 |
n |
Number of draws to sample from the distribution. |
See vignette("brms_families")
for details on the
parameterization.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.