R/mortality_weights.R
compute_weights_BMA.RdCompute the model evidence/marginal likelihood via bridge sampling (or via the harmonic mean estimator if bridge sampling fails)
compute_weights_BMA(stan_fits, mortality_models)
| stan_fits | list of Stan model fits where the marginal likelihood was computed via bridge sampling |
|---|---|
| mortality_models | vector of mortality models names |
data frame with model evidence for BMA