Function to approximate Bayesian model probability using importance sampling. The output logBML is approximating the Bayesian factor integral, and the support for one model over another, given the same data (i.e. the Bayes factor), can be approximated by exp(logBML[1] - logBML[2])
1 | doBML(cmrfit, ndraws = 10000)
|
cmrfit |
A fit of a model using Compadre. The function extracts the Bayesian probability density function and uses the last half of the chain. |
ndraws |
number of samples to use to approximate the Bayesian model probability |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.