StickBreaking {dirichletprocess} | R Documentation |
The Stick Breaking representation of the Dirichlet process.
Description
A Dirichlet process can be represented using a stick breaking construction
,
where are the stick breaking weights.
The atoms
are drawn from
the base measure of the Dirichlet Process.
The
. In theory
should be infinite, but we chose some value of
to truncate
the series. For more details see reference.
Usage
StickBreaking(alpha, N)
piDirichlet(betas)
Arguments
alpha |
Concentration parameter of the Dirichlet Process. |
N |
Truncation value. |
betas |
Draws from the Beta distribution. |
Value
Vector of stick breaking probabilities.
Functions
-
piDirichlet()
: Function for calculating stick lengths.
References
Ishwaran, H., & James, L. F. (2001). Gibbs sampling methods for stick-breaking priors. Journal of the American Statistical Association, 96(453), 161-173.
[Package dirichletprocess version 0.4.2 Index]