BF | R Documentation |
BF
calculates log Bayes factors (LBF) of all models compared against
the model that has the highest log likelihood. The models are then ranked based
on LBF (mod.rank) and the model probability (mod.prob) is calculated.
BF(lmLs = NULL)
lmLs |
Numeric vector with log marginal likelihood values of the models |
A LBF value of -2 (or smaller) indicates support for reference model (the model that has the highest log likelihood). Values smaller than -6 indicate a strong evidence in favour of the reference model (Kass and Raftery 1995).
A data.frame with log Bayes factors (LBF), the models' ranks (mod.rank) and the models' probability (mod.prob).
# From migrate-n tutotial: 'Comparison of gene flow models using
# Bayes Factors' (Beerli 2010)
mod.comp <- BF(c(-4862.85, -4860.58, -4863.08, -4887.25))
mod.comp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.