Description Usage Arguments Value See Also Examples
The recommended function for fitting mixture models and evaluating convergence is through the ‘gibbs' function. This function will return a list of models ordered by the marginal likelihood. The marginal likelihood is computed using the Chib’s estimator (JASA, Volume 90 (435), 1995).
| 1 2 3 4 5 6 7 8 9 10 | marginalLikelihood(model, params = mlParams())
## S4 method for signature 'MultiBatchModel'
marginalLikelihood(model, params = mlParams())
## S4 method for signature 'MultiBatchPooled'
marginalLikelihood(model, params = mlParams())
## S4 method for signature 'list'
marginalLikelihood(model, params = mlParams(warnings = FALSE))
 | 
| model | An object of class  | 
| params | A list containing parameters for marginalLikelihood computation. | 
A vector of the marginal likelihood of the model(s)
See marginal_lik for the accessor.
Note: currently thinning of the reduced MCMC chains is not allowed.
| 1 2 3 4 5 6 | ## In practice, run a much longer burnin and increase the number of
## iterations to save after burnin
   mm <- SingleBatchModelExample
   mcmcParams(mm) <- McmcParams(iter=50, burnin=0, nStarts=0)
   mm <- posteriorSimulation(mm)
   marginalLikelihood(mm)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.