prepares posterior distribution for 'bridgesampling' by removing unnecessary parameters and attaching lower and upper bounds of parameters based on a list of prior distributions.
JAGS_bridgesampling_posterior(
posterior,
prior_list,
add_parameters = NULL,
add_bounds = NULL
)
JAGS_bridgesampling_posterior
returns a matrix of
posterior samples with 'lb' and 'ub' attributes carrying the
lower and upper boundaries.
matrix of mcmc samples from the posterior distribution
named list of prior distribution
(names correspond to the parameter names) of parameters not specified within the
formula_list
vector of additional parameter names that should be used
in bridgesampling but were not specified in the prior_list
list with two name vectors ("lb"
and "up"
)
containing lower and upper bounds of the additional parameters that were not
specified in the prior_list