View source: R/dirichlet_process_create.R
DirichletProcessCreate | R Documentation |
Using a previously created Mixing Distribution Object (mdObject
) create a Dirichlet process object.
'alphaPriorParameters
sets the parameters for alpha using the shape-rate specification of the gamma distribution.
DirichletProcessCreate(
x,
mdObject,
alphaPriorParameters = c(1, 1),
mhDraws = 250
)
x |
Data |
mdObject |
Mixing Distribution Object |
alphaPriorParameters |
Prior parameters for the concentration parameter of the Dirichlet Process |
mhDraws |
Number of posterior samples to take in the nonconjugate case |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.