HWCondProbAB | R Documentation |
Computes the probability of a particular genotypic sample given the allele count, sample size and number of heterozygotes.
HWCondProbAB(n, nA, nAB)
n |
|
nA |
|
nAB |
|
p |
probability of the particular sample |
Jan Graffelman (jan.graffelman@upc.edu)
HWExact
x <- c(298,489,213)
names(x) <- c("MM","MN","NN")
n <- sum(x)
nM <- 2*x[1]+x[2]
nMN <- x[2]
p <- HWCondProbAB(n,nM,nMN)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.