Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Dirichlet

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 samples to draw from the distribution.

Details

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


brms

Bayesian Regression Models using 'Stan'

v2.15.0
GPL-2
Authors
Paul-Christian Bürkner [aut, cre], Jonah Gabry [ctb], Sebastian Weber [ctb], Andrew Johnson [ctb], Martin Modrak [ctb]
Initial release
2021-03-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.