cprt: Conditional Probability

Description Usage Arguments Value Examples

View source: R/ch3-fn.R

Description

Calculating the Conditional Probability

Usage

1
cprt(a, b)

Arguments

a

Event to be conditioned.

b

Event to be conditioning.

Value

None.

Examples

1
2
3
4
S = rolldie2(2)
A = subset(S, (X1+X2) >=4)
B = subset(S, (X1+X2) >=8)
cprt(B, A)

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.