HWE2sided: P-values for three different tests of HWE

Description Usage Arguments Value Author(s) References See Also Examples

Description

Calculates conditional p-values proposed in Kulinskaya (2008) to overcome the problems of asymetric distributions, the Haldane 2-sided test as implemented by Wiggington et al (2005) and the 1-sided test for inbreeding.

Usage

1
HWE2sided(geno, qplot = F, title = NULL)

Arguments

geno

Vector of genotype counts: no. heterozygotes followed by the nos. homozygotes

qplot

If qplot is true the distribution of the null hypothesis is plotted

title

Title for the plot

Value

pval.cond

Conditional p-value

pval.H

2-sided Haldane p-value

pval.inbreed

1-sided test for inbreeding

Author(s)

Alex Lewin

References

Kulinskaya and Lewin 2008

See Also

HWE2sided.table

Examples

1
2
geno <- c(20,73,7)
HWE2sided(geno)

Example output

$pval.cond
[1] 0.01248399

$pval.H
[1] 0.007101873

$pval.inbreed
[1] 0.007101873

LDtests documentation built on May 2, 2019, 2:44 p.m.

Related to HWE2sided in LDtests...