recompile: Function for recompiling rjags object

Description Usage Arguments Author(s) Examples

View source: R/recompile.R

Description

The recompile takes a rjags object as input. recompile will re-compile the previous saved rjags object.

Usage

1
2
3
4
recompile(object, n.iter, refresh, progress.bar)
## S3 method for class 'rjags'
recompile(object, n.iter=100, refresh=n.iter/50, 
    progress.bar = "text")

Arguments

object

an object of rjags class.

n.iter

number of iteration for adapting, default is 100

refresh

refresh frequency for progress bar, default is n.iter/50

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 progress.bar is “none”

Author(s)

Yu-Sung Su suyusung@tsinghua.edu.cn

Examples

1
 # see ?jags for an example.

Example output

Loading required package: rjags
Loading required package: coda
Linked to JAGS 4.3.0
Loaded modules: basemod,bugs

Attaching package: 'R2jags'

The following object is masked from 'package:coda':

    traceplot

R2jags documentation built on April 28, 2020, 1:08 a.m.