update {rjags} | R Documentation |
A jags
object represents a Bayesian graphical model
described using the BUGS language.
adapt(object, n.iter, ...)
object |
a jags model object |
n.iter |
length of the adaptive phase |
... |
additional arguments to the update method |
This function is not normally called by the user.
When a JAGS model is compiled, it may require an initial sampling phase
during which the samplers adapt their parameters to maximize their
efficiency. The sequence of samples generated during this
adaptive phase is not a Markov chain, and therefore may not be used
for posterior inference on the model. For this reason, the adapt
function must be called before samples can be generated from the
model using the update
method. Normally, this is done by the
jags.model
function when the model object is created.
The adapt
function can only be called once on a jags model object
since it turns off the adaptive phase. Subsequent calls to adapt
do nothing.
This function modifies the original object and returns NULL
Martyn Plummer