Skip to contents

returns the Bayes Factor for two models

Usage

get_BayesFactor(MLL1, MLL2)

Arguments

MLL1

Numeric. Marginal likelihood of model 1. Obtained with run_bridge_sampling()

MLL2

Numeric. Marginal likelihood of model 2. Obtained with run_bridge_sampling()

Value

The BayesFactor for model 1 over model 2

Examples

# \donttest{
# 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)
#> [1] 1
# }