Math.rv {rv}R Documentation

Mathematical functions and Operators for rv Objects

Description

Mathematical functions and operators adapted to work with random variable (rv) objects.

Usage

  ## S3 method for class 'rv':
  Math(x, ...)
  ## S3 method for class 'rv':
  Ops(e1, e2)

Arguments

x object
e1 object
e2 object
... further arguments passed to or from other methods

Details

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.

Examples

  x <- rvnorm(10)
  -x
  x + 1:10
  cumsum(x)
  cumprod(exp(x))

[Package rv version 0.949 Index]