This is a wrapper function for jags.samples which sets a trace
monitor for all requested nodes, updates the model, and coerces the
output to a single mcmc.list object. It also converts to the output
to dic format. This function is based on the coda.samples function
from the rjags library, and modified by Prof. Matthias Mittner.
coda.samples.dic(model, variable.names, n.iter, thin, ...)It returns the output to the input model object, and in dic format.
a jags model object
a character vector giving the names of variables to be monitored
number of iterations to monitor
thinning interval for monitors
optional arguments that are passed to the jags.samples method
from the rjags library, for jags model objects
plummer2021rjagsBayesCACE