Extremes-rv {rv}R Documentation

Maxima and Minima of Random Variables

Description

Returns the maxima and minima of the components of a random vector.

Usage

  rvmin(x)
  rvmax(x)
  rvrange(x)

Arguments

x an rv or rvsummary object

Details

rvmin applies the function min to each component of the argument x. Missing values are removed.

rvmax applies the function max to each component of the argument x. Missing values are removed.

rvrange applies the function range to each component of the argument x. Missing values are removed.

Value

A numeric vector of the same dimension as x.

Author(s)

Jouni Kerman jouni@kerman.com

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

rvmedian, rvmean.

Examples

  x <- rvpois(10, lambda=3)
  rvmin(x)
  rvmax(x)
  rvrange(x)

[Package rv version 1.0 Index]