RVcomparisons: Comparisons

Description Usage Arguments Examples

Description

Comparing random variables

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
  ## S3 method for class 'RV'
 X > Y

  ## S3 method for class 'RV'
 X >= Y

  ## S3 method for class 'RV'
 X < Y

  ## S3 method for class 'RV'
 X <= Y

  ## S3 method for class 'RV'
 X == Y

  ## S3 method for class 'RV'
 X != Y

Arguments

X

The first item to compare

Y

The second item to compare

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
X <- make.RV(0:1, .5)
Y <- make.RV(0:1, c(.2, .8))
P(X > Y)
P(X >= Y)
P(X < Y)
P(X <= Y)
P(X == Y)
P(X != Y)
P(X == 1)
P(X - Y == 0)

Dasonk/drvc documentation built on May 6, 2019, 1:37 p.m.