dlevene.bi: Calculate Levene's density for a bi-allelic variant

dlevene.biR Documentation

Calculate Levene's density for a bi-allelic variant

Description

Program dlevene.bi calculates Levene's density (P(AB|A)) for a bi-allelic variant.

Usage

dlevene.bi(x)

Arguments

x

a vector of genotype counts (AA,AB,BB)

Value

a single real number

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

References

Levene, H. (1949) On a matching problem arising in genetics. Annals of Mathematical Statistics, 20, pp. 91-94.

See Also

dlevene, HWExact

Examples

x <- c(AA=298,AB=489,BB=213)
prob <- dlevene.bi(x)
print(prob)

HardyWeinberg documentation built on May 29, 2024, 6:17 a.m.