p_overlap: Probability for an overlap of two samples.

p_overlapR Documentation

Probability for an overlap of two samples.

Description

The probability is computed using the forumla \frac{{y \choose x}\times {n-y \choose k-x}}{{n \choose k}}.

Usage

p_overlap(x, y, k, n)

Arguments

x

Overlap.

y

Size of sample 1.

k

Size of Sample 2.

n

Number of all elements sampled from.

Value

Overlap probability.

Examples

p_overlap(10, 20, 30, 100)


tdrose/mosbi documentation built on May 4, 2022, 3:22 p.m.