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