powered by
Computes the probability of a particular genotypic sample given the allele count, sample size and number of heterozygotes.
HWCondProbAB(n, nA, nAB)
probability of the particular sample
n is the total sample size (total number of individuals)
n
nA is the number of A alleles in the sample
nA
nAB is the number of heterozygotes in the sample
nAB
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)
Run the code above in your browser using DataLab