| expectedHomozygosity | R Documentation |
Computes the expected homozygosity and heterozygosity for a marker from its
allele frequencies. The homozygosity is \sum_i p_i^2 and the
heterozygosity is one minus this.
expectedHomozygosity(p)
expectedHeterozygosity(p)
p |
A numeric vector of allele frequencies, or a |
A numeric value giving the expected homozygosity or heterozygosity.
p = c(0.2, 0.5, 0.3)
expectedHomozygosity(p)
expectedHeterozygosity(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.