rv (version 2.3.4)

range.rv: 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 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.

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

See Also

quantile.rv

Examples

Run this code
# NOT RUN {
  x <- rvnorm(mean=1:10, sd=1)
  print(range(x))
  print(quantile(x, c(0,1)))

# }

Run the code above in your browser using DataLab