Computes marginal likelihood for the prior part of a 'JAGS' model within 'bridgesampling' function

JAGS_marglik_priors(samples, prior_list)

JAGS_marglik_priors_formula(samples, formula_prior_list)

Arguments

samples

samples provided by bridgesampling function

prior_list

named list of prior distribution (names correspond to the parameter names) of parameters not specified within the formula_list

formula_prior_list

named list of named lists of prior distributions (names of the lists correspond to the parameter name created by each of the formula and the names of the prior distribution correspond to the parameter names) of parameters specified within the formula

Value

JAGS_marglik_priors returns a numeric value of likelihood evaluated at the current posterior sample.