calc_weights {mcbette} | R Documentation |
Calculate the weights for each marginal likelihood
Description
Calculate the weights for each marginal likelihood
Usage
calc_weights(marg_liks)
Arguments
marg_liks |
(non-log) marginal likelihood estimates |
Value
the weight of each marginal likelihood estimate, which will sum up to 1.0
Author(s)
Richèl J.C. Bilderbeek
Examples
# Evidences (aka marginal likelihoods) can be very small
evidences <- c(0.0001, 0.0002, 0.0003, 0.0004)
# Sum will be 1.0
calc_weights(evidences)
beastier::remove_beaustier_folders()
beastier::check_empty_beaustier_folders()
[Package mcbette version 1.15.3 Index]