as.rv.bugs {rv}R Documentation

Coerce an R2WinBUGS object into Random Variable Objects

Description

as.rv.bugs coerces an R2WinBUGS object to a list of rv objects or to a named rv object (vector).

as.rvsummary.bugs works similarly but coerces the resulting rv objects into rvsummary objects.

Usage

  ## S3 method for class 'bugs':
  as.rv(x, list.=TRUE, ...)
  ## S3 method for class 'bugs':
  as.rvsummary(x, list.=TRUE, ...)

Arguments

x a bugs (R2WinBUGS) object
list. logical; return a list of rv objects instead of a single rv object (vector)?
... (ignored)

Value

A named list of random vectors or a named random vector.

Author(s)

Jouni Kerman jouni@kerman.com

References

Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.

See also vignette("rv").


[Package rv version 1.0 Index]