Evaluates a JAGS formula on a posterior distribution obtained from a fitted model.
JAGS_evaluate_formula(fit, formula, parameter, data, prior_list)
model fitted with either runjags posterior samples obtained with rjags-package
formula specifying the right hand side of the assignment (the left hand side is ignored)
name of the parameter created with the formula
data.frame containing predictors included in the formula
named list of prior distribution of parameters specified within
the formula
JAGS_evaluate_formula
returns a matrix of the evaluated posterior samples on
the supplied data.