View source: R/bayes-diagnostics.R
| marginal_likelihood | R Documentation |
Estimates the log marginal likelihood using the modified harmonic mean estimator (Geweke, 1999). This provides a practical Bayesian model comparison tool via Bayes factors: BF12 = exp(logML1 - logML2).
marginal_likelihood(object, ...)
object |
A |
... |
Additional arguments passed to methods (e.g., |
The harmonic mean estimator is known to be numerically unstable in some cases. The modified version (with truncation parameter tau) reduces this instability. Results should be interpreted with caution and compared across models only when both use similar MCMC settings.
An object of class "dsge_marginal_likelihood".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.