autojags {R2jags} | R Documentation |
Function for auto-updating ‘JAGS’ until the model converges
Description
The autojags
takes a rjags
object as input.
autojags
will update the model until it converges.
Usage
## S3 method for class 'rjags'
update(object, n.iter=1000, n.thin=1,
refresh=n.iter/50, progress.bar = "text", ...)
autojags(object, n.iter=1000, n.thin=1, Rhat=1.1, n.update=2,
refresh=n.iter/50, progress.bar = "text", ...)
Arguments
object |
an object of |
n.iter |
number of total iterations per chain, default=1000 |
n.thin |
thinning rate. Must be a positive integer, default=1 |
... |
further arguments pass to or from other methods. |
Rhat |
converegence criterion, default=1.1. |
n.update |
the max number of updates, default=2. |
refresh |
refresh frequency for progress bar, default is |
progress.bar |
type of progress bar. Possible values are “text”,
“gui”, and “none”. Type “text” is displayed
on the R console. Type “gui” is a graphical progress bar
in a new window. The progress bar is suppressed if |
Author(s)
Yu-Sung Su suyusung@tsinghua.edu.cn
References
Gelman, A., Carlin, J.B., Stern, H.S., Rubin, D.B. (2003): Bayesian Data Analysis, 2nd edition, CRC Press.
Examples
# see ?jags for an example.