Description Usage Arguments Details Examples
lp
simulates Mendelian populations. Specify allele
frequencies and population size. The simulation generates a population with N individuals
and 2N alleles by randomly selecting 2N alleles for N individuals from a gamete pool based on
allele frequencies.
1 | lp(p1, p2, alleles, N)
|
p1 |
Allele 1 frequency |
p2 |
Allele 2 frequency |
alleles |
allele types (use 1 and 2) |
N |
Population size |
lp
returns the allele frequencies, observed and expected heterozygosities,
Wright's F, and Fisher's exact tests (fisher.test) comparing the observed genotype counts to the expected
and initial values.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.