Learn R Programming

dirichletprocess (version 0.4.2)

DirichletProcessCreate: Create a Dirichlet Process object

Description

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.

Usage

DirichletProcessCreate(
  x,
  mdObject,
  alphaPriorParameters = c(1, 1),
  mhDraws = 250
)

Arguments

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