hwd: Deviation from Hardy-Weinberg equilibrium

View source: R/RcppExports.R

hwdR Documentation

Deviation from Hardy-Weinberg equilibrium

Description

Computes the deviation from Hardy-Weinberg equilibrium following Caballero and Toro (2000).

Usage

hwd(ped, reference = NULL)

Arguments

ped

A dataframe containing the pedigree. Individual (id), maternal (dam), and paternal (sire) identities are mandatory columns.

reference

A string naming a column indicating whether individuals belong to the reference population or not. Column must be boolean or coercible to boolean type.

Value

A numeric value indicating the deviation from Hardy-Weinberg equilibrium.

References

  • Caballero A, Toro M. 2000. Interrelations between effective population size and other pedigree tools for the management of conserved populations. Genet. Res. 75: 331-343.

See Also

pop_Ne


purgeR documentation built on Aug. 16, 2023, 9:07 a.m.