Learn R Programming

HW.pval (version 1.0)

Testing Hardy-Weinberg Equilibrium for Multiallelic Genes

Description

HW.pval calculates plain and fully conditional root-mean-square, chi-square, and log likelihood-ratio P-values for the user-provided genotypic counts to be consistent with the Hardy-Weinberg equilibrium model. For further information on the Hardy-Weinberg equilibrium model and the pseudocode, refer to the paper "Testing Hardy-Weinberg equilibrium with a simple root-mean-square statistic" by Rachel Ward.

Copy Link

Version

Install

install.packages('HW.pval')

Monthly Downloads

5

Version

1.0

License

GPL-3

Maintainer

Shubhodeep Mukherji

Last Published

July 11th, 2012

Functions in HW.pval (1.0)

HW.pval

Testing Hardy-Weinberg Equilibrium for Multiallelic Genes
HW.pval-package

Testing Hardy-Weinberg Equilibrium for Multiallelic Genes
test.chisq

Computing the chi-square test statistic
test.rms

Computing the root-mean-square test statistic
HW.plain

Computing the plain P-Value for a given lower-triangular array of genotype counts
HW.cond

Computing the fully conditional P-value for a given lower-triangular array of genotype counts
test.gsq

Computing the log likelihood-ratio test statistic
create.model

Creating the Hardy-Weinberg model distribution from a given lower-triangular array of genotype counts