Learn R Programming

ISCAM (version 1.0.0)

iscamhyperprob: Hypergeometric p-value and Distribution

Description

Hypergeometric p-value and Distribution

Usage

iscamhyperprob(k, total, succ, n, lower.tail, verbose = TRUE)

Value

Tail probabilities from the hypergeometric distribution, hypergeometric distribution with the observed statistic and more extreme shaded.

Arguments

k

Number of successes of interest or difference in conditional proportions

total

Total number of observations in the study

succ

Overall number of successes

n

Number of observations in group A

lower.tail

Boolean for finding the probability above (FALSE) or below (TRUE) the inputted value (inclusive)

verbose

Logical, defaults to TRUE. Set to FALSE to suppress messages

Examples

Run this code
iscamhyperprob(1, 20, 5, 10, TRUE)

Run the code above in your browser using DataLab