splitrv {rv}R Documentation

Split random vector based on the names of the components

Description

splitrv splits the given vector based on the names of the components and returns a list. The names are supposed to be of the format 'name[indexes]', for example 'alpha[1,1]', 'beta[1]', etc. A name without brackets implies '[1]'.

Usage

splitrv(x)

Arguments

x an rv object with the name attributes set

Details

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

References

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

Examples

  #

[Package rv version 0.925 Index]