View source: R/dgraffelmanweir.bi.R
dgraffelmanweir.bi | R Documentation |
Function dgraffelmanweir
calculate the probability P(NAB=nab and
MA=ma|NA=na) for a bi-allelic X-chromosomal variant.
dgraffelmanweir.bi(x, y)
x |
vector with male genotype counts (A,B) |
y |
vector with female genotype counts (AA,AB,BB) |
a single real number
Jan Graffelman jan.graffelman@upc.edu
Graffelman, J. and Weir, B.S. (2016) Testing for Hardy-Weinberg equilibrium at bi-allelic genetic markers on the X chromosome. Heredity 116(6) pp. 558–568. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1038/hdy.2016.20")}
HWExact
, HWExactStats
males <- c(A=392, B=212)
females <- c(AA=275, AB=296, BB=80)
prob <- dgraffelmanweir.bi(males,females)
print(prob)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.