pprt: Probability of an Event

View source: R/ch3-fn.R

pprtR Documentation

Probability of an Event

Description

Calculating the Probability of an Event

Usage

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

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

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.