Learn R Programming

rv (version 0.949)

rvrange: Range of Simulations in a Random Variable

Description

Returns the range (min, max) of the simulations for each component of the given random vector or array.

Usage

rvrange(x, ...)

Arguments

x
an rv object
...
arguments passed to range

Value

  • A numeric (constant) array with 2 rows (=min, max) and length(x) columns.

Details

rvrange applies the function range to each component of the 'rv' object.

References

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

See Also

range.rv returns the distribution of the range of a random vector.

Examples

Run this code
#

Run the code above in your browser using DataLab