Skip to content

HardyWeinberg

Statistical Tests and Graphics for Hardy-Weinberg Equilibrium

v1.7.9 · Sep 10, 2025 · GPL (>= 2)

Description

Contains tools for exploring Hardy-Weinberg equilibrium (Hardy, 1908; Weinberg, 1908) for bi and multi-allelic genetic marker data. All classical tests (chi-square, exact, likelihood-ratio and permutation tests) with bi-allelic variants are included in the package, as well as functions for power computation and for the simulation of marker data under equilibrium and disequilibrium. Routines for dealing with markers on the X-chromosome are included (Graffelman & Weir, 2016) <doi:10.1038/hdy.2016.20>, including Bayesian procedures. Some exact and permutation procedures also work with multi-allelic variants. Special test procedures that jointly address Hardy-Weinberg equilibrium and equality of allele frequencies in both sexes are supplied, for the bi and multi-allelic case. Functions for testing equilibrium in the presence of missing data by using multiple imputation are also provided. Implements several graphics for exploring the equilibrium status of a large set of bi-allelic markers: ternary plots with acceptance regions, log-ratio plots and Q-Q plots. The functionality of the package is explained in detail in a related JSS paper <doi:10.18637/jss.v064.i03>.

Downloads

3.5K

Last 30 days

2170th

12K

Last 90 days

64.6K

Last year

Trend: -24.1% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (4)

imports

Dependency Network

Dependencies Reverse dependencies mice nnet Rsolnp shape Rcpp compareGroups dartR dartR.base gaawr2 HardyWeinberg

Version History

new 1.7.9 Mar 10, 2026
updated 1.7.9 ← 1.7.8 diff Sep 9, 2025
updated 1.7.8 ← 1.7.7 diff Apr 5, 2024
updated 1.7.7 ← 1.7.5 diff Mar 30, 2024
updated 1.7.5 ← 1.7.4 diff May 6, 2022
updated 1.7.4 ← 1.7.3 diff Nov 25, 2021
updated 1.7.3 ← 1.7.2 diff Nov 16, 2021
updated 1.7.2 ← 1.7.1 diff Apr 27, 2021
updated 1.7.1 ← 1.7.0 diff Jan 3, 2021
updated 1.7.0 ← 1.6.9 diff Dec 13, 2020
updated 1.6.9 ← 1.6.8 diff Dec 7, 2020
updated 1.6.7 ← 1.6.6 diff Sep 19, 2020
updated 1.6.8 ← 1.6.7 diff Sep 19, 2020
updated 1.6.6 ← 1.6.3 diff Aug 12, 2020
updated 1.6.3 ← 1.6.2 diff Jun 28, 2019
updated 1.6.2 ← 1.6.1 diff Apr 13, 2019
updated 1.6.1 ← 1.5.9 diff May 29, 2018
updated 1.5.9 ← 1.5.8 diff Dec 15, 2017
updated 1.5.8 ← 1.5.7 diff May 16, 2017
updated 1.5.7 ← 1.5.6 diff Apr 21, 2017