Learn R Programming

⚠️There's a newer version (0.67-3) of this package.Take me there.

hwde (version 0.66)

Models and Tests for Departure from Hardy-Weinberg Equilibrium and Independence Between Loci

Description

Fits models for genotypic disequilibria, as described in Huttley and Wilson (2000), Weir (1996) and Weir and Wilson (1986). Contrast terms are available that account for first order interactions between loci. Also implements, for a single locus in a single population, a conditional exact test for Hardy-Weinberg equilibrium.

Copy Link

Version

Install

install.packages('hwde')

Monthly Downloads

190

Version

0.66

License

GPL (>= 2)

Maintainer

John Maindonald

Last Published

September 14th, 2015

Functions in hwde (0.66)

hwde

Fit relevant models, and test for various types of departure from Hardy-Weinberg equilibrium. Allows only 2 alleles per locus. The number of loci is arbitrary.
decode.genotypes

Creates contrasts that relate to a single locus
make.contrasts

Calculate contrasts required by the function
hwexact

Exact test of HWE
mendelABC

Mendel's F2 trifactorial data for seed shape (A: round or wrinkled), cotyledon color (B: albumen yellow or green), and seed coat color (C: grey-brown or white)
IndianIrish

Observed genotype frequencies at MN and S loci, for 2 populations