Learn R Programming

dirichletprocess (version 0.4.2)

MixingDistribution: Create a mixing distribution object

Description

The constructor function for a mixing distribution object. Use this function to prepare an object for use with the appropriate distribution functions.

Usage

MixingDistribution(
  distribution,
  priorParameters,
  conjugate,
  mhStepSize = NULL,
  hyperPriorParameters = NULL
)

Arguments

distribution

The name of the distribution mixture

priorParameters

The prior parameters

conjugate

Whether the prior is conjugate to the Likelihood.

mhStepSize

The scale of the proposal parameter for the Metropolis Hastings algorithm. Not needed for conjugate mixtures.

hyperPriorParameters

Vector of hyperPriorParameters for the distribution.