Skip to contents

Calculate cumulative hypergeometric probabilities

Usage

get_hypergeom_cumulative(k, m, n, N, tail = "lower")

Arguments

k

Number of cases in the sample

m

Number of cases in the population

n

Sample size

N

Population size

tail

A character vector indicating "lower" (default) or "upper" tail

Examples

get_hypergeom_cumulative(k = 5, m = 600, n = 25, N = 10000)
#> [1] 1.954484e-08