calCumul: Calculate the cumulative probability of each result

Description Usage Arguments Value Examples

View source: R/mtest.R

Description

The cumulative probability is the sum of the probability of a given result plus the probabilities of every other equally or less likely result. For a given result, this is the p-val returned by bernPval.

Usage

1

Arguments

l

List containing each possible result with the same number of experiments, tries and outcomes as the original input. Usually, this will be the output of bernDist.

Value

List with the same elements and fields as the input, plus a cval field with the cumulative probability.

Examples

1
2
r <- bernDist(list(c(8, 2), c(4, 7)))
s <- calCumul(r)

vqf/mtest documentation built on Dec. 23, 2021, 4:11 p.m.