Learn R Programming

dartR (version 1.1.11)

utils.hwe: Calculates departure from Hardy-Weinberg Equilibrium. Utility script not meant for end users.

Description

Calculates the probabilities of agreement with H-W equilibrium based on observed frequencies of reference homozygotes, heterozygotes and alternate homozygotes. Uses the exact calculations contained in function prob.hwe() as developed by Wigginton, JE, Cutler, DJ, and Abecasis, GR.

Usage

utils.hwe(x, prob = 0.05)

Arguments

x

-- a genlight object containting the SNP profiles for a population [Required]

prob

-- level of significance [Default 0.05]

Value

Locus, Hom_1, Het, Hom_2, N, Prob, Sig, BonSig)