jags.object {rjags} | R Documentation |
A jags
object represents a Bayesian graphical model
described using the BUGS language.
## S3 method for class 'jags': update(object, niter=1, by, ...) ## S3 method for class 'jags': coef(object, chain=1, ...)
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) |
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.
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.
Martyn Plummer