jags.object {rjags}R Documentation

Functions for manipulating jags model objects

Description

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

Usage

## S3 method for class 'jags':
update(object, niter=1, by, ...)
## S3 method for class 'jags':
coef(object, chain=1, ...)

Arguments

object a jags model object
niter number of iterations to update the model
by update frequency for progress bar. See Details
chain chain number to query
... additional arguments to the call (ignored)

Details

Since MCMC calculations are typically long, a progress bar is displayed during the call to update. The progress bar is refreshed every by iterations. If R is not being used interactively then the progress bar is suppressed.

Value

These are methods for generic functions applied to jags model objects.
The update function update all samplers associated with the model by the given number of iterations. This function modifies the original object and invisibly returns NULL.
The coef function returns a list with an entry for each Node array that contains an unobserved Node. Elements corresponding to observed Nodes or deterministic Nodes are given missing values.

Author(s)

Martyn Plummer


[Package rjags version 1.0.3-4 Index]