sum_ML_over_PP: Calculate marginal likelihood from power posteriors output

Description Usage Arguments Value

View source: R/functions.R

Description

Calculate the Marginal Likelihood by summation over power posterior likelihood exptectances

Usage

1
sum_ML_over_PP(y_log_lik_t_equals_1_traces, temperatures)

Arguments

y_log_lik_t_equals_1_traces

Numeric matrix of log probabilities of y at different temperatures (columns) in different iterations (rows).

temperatures

Numeric vector of temperatures used to produce y_log_lik_t_equals_1_traces.

Value

Numeric value of estimated log marginal likelihood.


BeviMed documentation built on March 31, 2020, 5:17 p.m.