pprt: Probability of an Event

Description Usage Arguments Value Examples

View source: R/pprt.R

Description

Calculating the Probability of an Event

Usage

1
pprt(x, n, prt = TRUE)

Arguments

x

Event in data frame.

n

Size of the sample space.

prt

Print output? Default: TRUE

Value

The probability of an event.

Examples

1
2
3
S <- rolldie2(2)
B <- subset(S, (X1 + X2) >= 8)
pprt(B, nrow(S))

jhk0530/Rstat documentation built on Dec. 20, 2021, 11:11 p.m.