Description Usage Arguments Details Value Examples
This is the constructor function to produce a dirichletprocess
object
with a Von Mises mixture kernel with unknown mean and unknown concentration
kappa. The base measure is conjugate to the posterior distribution.
1 2 | DirichletProcessVonMises(y, g0Priors = c(0, 0, 1), alphaPriors = c(2,
4), priorMeanMethod = "integrate", n_samp = 3)
|
y |
Data |
g0Priors |
Base Distribution Priors γ = (μ_0, R_0, n_0) |
alphaPriors |
Alpha prior parameters. See |
priorMeanMethod |
Method for marginalization of prior mean. See
|
n_samp |
Number of Gibbs samples before we assume draws from posterior
are i.i.d. See |
The base measure is G_0 (μ, κ \mid γ) = I_0(R κ)^{- n_0} \exp(R_0 κ \cos(μ - μ_0)).
Dirichlet process object
1 2 | dp <- DirichletProcessVonMises(rvm(10, 2, 5))
dp
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.