update {rjags}R Documentation

Adaptive phase for JAGS models

Description

A jags object represents a Bayesian graphical model described using the BUGS language.

Usage

adapt(object, n.iter, ...)

Arguments

object a jags model object
n.iter length of the adaptive phase
... additional arguments to the update method

Details

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.

Value

This function modifies the original object and returns NULL

Author(s)

Martyn Plummer


[Package rjags version 1.0.3-8 Index]