Learn R Programming

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

hwde (version 0.65)

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.65

License

GPL (>= 2)

Maintainer

John Maindonald

Last Published

August 6th, 2015

Functions in hwde (0.65)

decode.genotypes

Creates contrasts that relate to a single locus
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.
hwexact

Exact test of HWE
make.contrasts

Calculate contrasts required by the function
mendelABC

Mendel's F2 trifactorial data for seed shape (A), cotyledon color (B) and seed coat color (C)
IndianIrish

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