rvAdapted {rv} | R Documentation |
Functions that have been adapted to work with rv objects.
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)
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()
.
Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.
cov
for details about the cov
and var
functions adapted for random variable objects.
x <- rvnorm(10) # A random vector. median(x) # A random variable. max(x) # Another random variable.