jags.object: Functions for manipulating jags model objects

Description Usage Arguments Value Author(s) Examples

Description

A jags object represents a Bayesian graphical model described using the BUGS language.

Usage

1
2
3
4
5
## S3 method for class 'jags'
coef(object, chain=1, ...)
## S3 method for class 'jags'
variable.names(object, ...)
list.samplers(object)

Arguments

object

a jags model object

chain

chain number to query

...

additional arguments to the call (ignored)

Value

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.

The variable.names function returns a character vector of names of node arrays used in the model.

The list.samplers function returns a named list with an entry for each Sampler used by the model. Each list element is a character vector containing the names of stochastic Nodes that are updated together in a block. The names of the list elements indicate the sampling methods that are used to update each block. Stochastic nodes that are updated by forward sampling from the prior are not listed.

Author(s)

Martyn Plummer

Examples

1
2
3
4
5

rjags documentation built on Nov. 6, 2019, 5:07 p.m.