range.rv {rv}R Documentation

Distribution of the Range of a Random Vector

Description

range.rv returns a 2-component random vector containing the distributions of the minimum and the maximum values of all the given arguments.

Usage

  ## S3 method for class 'rv':
  range(..., na.rm=FALSE, finite=FALSE)

Arguments

... further arguments passed to or from other methods
na.rm logical, indicating if NAs should be omitted
finite logical, indicating if all non-finite elements should be omitted

Details

This is the rv-compatible version of the function range.

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.

See Also

quantile.rv

Examples

  x <- rvnorm(mean=1:10, sd=1)
  print(range(x))
  print(quantile(x, c(0,1)))

[Package rv version 0.949 Index]