parameter: An object created with initializeParameterObject.
mcmc: An object created with initializeMCMCObject
mixture: determines for which mixture the marginal log-likelihood should be calculated
n.samples: How many samples should be used for the calculation
divisor: A value > 1 in order to scale down the tails of the importance distribution
warnings: Print warnings such as when the variance of a parameter is 0, which might occur when parameter is fixed
Returns
This function returns the model object created.
Details
calculateMarginalLogLikelihood Calculate marginal log-likelihood for calculation of the Bayes factor using a generalized harmonix mean estimator of the marginal likelihood. See Gronau et al. (2017) for details