get_BayesFactor {EMC2} | R Documentation |
Bayes Factors
Description
returns the Bayes Factor for two models
Usage
get_BayesFactor(MLL1, MLL2)
Arguments
MLL1 |
Numeric. Marginal likelihood of model 1. Obtained with |
MLL2 |
Numeric. Marginal likelihood of model 2. Obtained with |
Value
The BayesFactor for model 1 over model 2
Examples
# Normally one would compare two different models
# Here we use two times the same model:
M1 <- M0 <- run_bridge_sampling(samples_LNR, both_splits = FALSE, cores_for_props = 1)
get_BayesFactor(M1, M0)
[Package EMC2 version 3.2.0 Index]