returns the Bayes Factor for two models
get_BayesFactor(MLL1, MLL2)
The BayesFactor for model 1 over model 2
Numeric. Marginal likelihood of model 1. Obtained with run_bridge_sampling()
Numeric. Marginal likelihood of model 2. Obtained with run_bridge_sampling()
# \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)
# }
Run the code above in your browser using DataLab