HWD | R Documentation |
Function HWD
computes Weir's disequilibrium coefficient D.
HWD(X)
X |
a vector of genotype counts (AA, AB, BB) |
Returns the disequilibrium coefficient
Jan Graffelman jan.graffelman@upc.edu
Weir, B.S. (1996) Genetic data analysis II. Sinauer Associates, Massachusetts. See Chapter3.
HWf
HWChisq
x <- c(MM=298,MN=489,NN=213)
D <- HWD(x)
cat("Disequilibrium coefficient: ",D,"\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.