Compute probability of a genotypic sample
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)
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.