Learn R Programming

rv (version 0.949)

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

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

Examples

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

Run the code above in your browser using DataLab