Learn R Programming

CNPBayes (version 1.2.2)

posteriorSimulation: Run the MCMC simulation.

Description

nStarts chains are run. b burnin iterations are run and then discarded. Next, s iterations are run in each train. The user can also specify an alternative number of components. The mode of the MCMC simulation is also calculated.

Usage

posteriorSimulation(object, k)
"posteriorSimulation"(object)
"posteriorSimulation"(object, k)
"posteriorSimulation"(object, k)

Arguments

object
see showMethods(posteriorSimulation)
k
The number of a priori components. This is optional and if not specified, the stored k model components are used. This parameters is useful for running multiple models of varying components.

Value

An object of class 'MarginalModel' or 'BatchModel'