doBML: Function to approximate Bayesian model probability using...

Description Usage Arguments

View source: R/doBML.R

Description

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])

Usage

1
doBML(cmrfit, ndraws = 10000)

Arguments

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


josteist/Compadre documentation built on June 3, 2021, 1:02 p.m.