The autojags
takes a rjags
object as input.
autojags
will update the model until it converges.
# S3 method for 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", ...)
an object of rjags
class.
number of total iterations per chain, default=1000
thinning rate. Must be a positive integer, default=1
further arguments pass to or from other methods.
converegence criterion, default=1.1.
the max number of updates, default=2.
refresh frequency for progress bar, default is n.iter/50
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 progress.bar
is
“none”
Yu-Sung Su suyusung@tsinghua.edu.cn
Gelman, A., Carlin, J.B., Stern, H.S., Rubin, D.B. (2003): Bayesian Data Analysis, 2nd edition, CRC Press.