Learn R Programming

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

HWxtest (version 1.0.5)

Exact Tests for Hardy-Weinberg Proportions

Description

Tests whether a set of genotype counts fits the HW expectations. Exact tests performed by an efficient algorithm. Included test statistics are likelihood ratio, probability, U-score and Pearsons X2.

Copy Link

Version

Install

install.packages('HWxtest')

Monthly Downloads

20

Version

1.0.5

License

GPL

Maintainer

Bill Engels

Last Published

November 10th, 2014

Functions in HWxtest (1.0.5)

xcountCutoff

Determine immediately whether number of tables is over a limit
fillUpper

Utility functions for handling genotype counts
xcount

Find Exact Number of Genotype Tables
hwdf

observedProb

Compute observed statistics for a genotype count matrix
whales.genind

Bowhead whale data from Morin et al. 2012
print.hwtest

S3 Method for printing hwtest objects
mtest

Performs an exact test using Monte Carlo trials for Hardy-Weinberg proportions
p.value

Extract just the P value(s) from a Hardy-Weinberg test.
hwx.test

Test for HW by either full enumeration or Monte Carlo.
acount

Find Approximate Number of Genotype Tables
defaultHistobounds

Functions to plot a histogram of test statistic
genepop.to.genind

Imports a .txt file in GenePop format into an object of type genind
xtest

Performs an exact test with full enumeration for Hardy-Weinberg proportions.
HWcases

This is a data file with some HW examples in matrix form
listify

Convert results of hwx.test to a single list of hwtest objects.