meanchyper: Mean of conditional hypergeometric distributions

View source: R/chyper.R

meanchyperR Documentation

Mean of conditional hypergeometric distributions

Description

Calculates the mean of a conditional hypergeometric distribution: the distribution of how many items are in the overlap of all samples when samples of arbitrary size are each taken without replacement from populations of arbitrary size.

Usage

meanchyper(s, n, m)

Arguments

s

an integer representing the size of the intersecting population

n

a vector of integers representing the sizes of each non-intersecting population

m

a vector of integers representing the sample sizes

Value

The mean of the conditional hypergeometric distribution specified

Examples

meanchyper(10, c(12,13,14), c(7,8,9))


WillNickols/chyper documentation built on Sept. 1, 2024, 10:11 p.m.