rvAdapted {rv}R Documentation

Functions adapted to accept random variable (rv) objects

Description

Functions that have been adapted to work with rv objects.

Usage

 c(..., recursive=FALSE)
 x %*% y
 is.vector(x, mode="any")
 max(..., na.rm = FALSE)
 pmax(..., na.rm = FALSE)
 min(..., na.rm = FALSE)
 pmin(..., na.rm = FALSE) 
 median(x, na.rm = FALSE) 

Details

These functions have been adapted to work with rv objects (since no real object-oriented generic version is available). They check whether an rv object has been passed as an argument; if false, the original function will be called.

To restore the original functions, detach the package; use detachrv().

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

cov for details about the cov and var functions adapted for random variable objects.

Examples

  x <- rvnorm(10) # A random vector.
  median(x)       # A random variable.
  max(x)          # Another random variable.  

[Package rv version 0.911 Index]