Learn R Programming

HWxtest (version 1.1.9)

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 Pearson's X2.

Copy Link

Version

Install

install.packages('HWxtest')

Monthly Downloads

53

Version

1.1.9

License

GPL

Maintainer

Bill Engels

Last Published

May 31st, 2019

Functions in HWxtest (1.1.9)

xcountCutoff

Determine immediately whether number of tables is over a limit
p.value

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

S3 Method for printing hwtest objects
xcount

Find Exact Number of Genotype Tables
whales.df

Bowhead whale data from Morin et al. 2012
xtest

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

Performs an “exact” test using Monte Carlo trials for Hardy-Weinberg proportions
fillUpper

mungeData
observedProb

Compute observed statistics for a genotype count matrix
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.
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
hwdf

hwx.test

Test for HW by either full enumeration or Monte Carlo.