The constructor function for a mixing distribution object. Use this function to prepare an object for use with the appropriate distribution functions.
MixingDistribution(distribution, priorParameters, conjugate, mhStepSize = NULL, hyperPriorParameters = NULL)
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. |