attach.jags: Attach/detach elements of 'JAGS' objects to search path

Description Usage Arguments Details Author(s) References Examples

View source: R/attach.jags.R

Description

These are wraper functions for attach.bugs and detach.bugs, which attach or detach three-way-simulation array of bugs object to the search path. See attach.all for details.

Usage

1
2
  attach.jags(x, overwrite = NA)
  detach.jags()

Arguments

x

An rjags object.

overwrite

If TRUE, objects with identical names in the Workspace (.GlobalEnv) that are masking objects in the database to be attached will be deleted. If NA (the default) and an interactive session is running, a dialog box asks the user whether masking objects should be deleted. In non-interactive mode, behaviour is identical to overwrite=FALSE, i.e. nothing will be deleted.

Details

See attach.bugs for details

Author(s)

Yu-Sung Su suyusung@tsinghua.edu.cn,

References

Sibylle Sturtz and Uwe Ligges and Andrew Gelman. (2005). “R2WinBUGS: A Package for Running WinBUGS from R.” Journal of Statistical Software 3 (12): 1–6.

Examples

1
  # See the example in ?jags for the usage.

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 Aug. 5, 2021, 9:07 a.m.

Related to attach.jags in R2jags...