Learn R Programming

rv (version 0.949)

as.rv.bugs: Coerce an R2WinBUGS object to an rv object

Description

as.rv.bugs coerces an R2WinBUGS object to an rv object.

Usage

## S3 method for class 'bugs':
as.rv(x)

Arguments

x
a bugs (R2WinBUGS) object

Value

  • A random vector with the names attribute set to the names of the parameters.

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.