Learn R Programming

rv (version 2.0.0)

rvattr: Attributes of Random Variables

Description

rvattr

Usage

rvattr(x, attrib=NULL)
rvattr(x, attrib=NULL) <- value

Arguments

x
an object
attrib
name of the attribute
value
list of values to set

Details

The values within the list value are matched by their name (e.g. `theta[1]') if possible; if both x and value do not have names, the list is matched by position.

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").

Examples

Run this code
#

Run the code above in your browser using DataLab