Description Usage Arguments Details Examples
non_rand_mating
simulates non-random mating Mendelian populations by specifying allele
frequencies, population size, and outcrossing rate. The simulation generates a parent population with N individuals
with 2N alleles by randomly sampling from a gamete pool based on the specified allele frequencies. Then parents are randomly selected to mate where the
outcrossing rate determines whether they mate with themselves or another randomly selected individual.
1 | non_rand_mating(outcrossingrate, p1, p2, alleles, N)
|
outcrossingrate |
probability an individual mates with a randomly selected individual from the parent population |
p1 |
Allele 1 frequency |
p2 |
Allele 2 frequency |
alleles |
allele types (use 1 and 2) |
N |
Population size |
non_rand_mating
returns the allele frequencies, observed and expected heterozygosities,
Wright's F, and Fisher's exact (fisher.test) tests comparing the observed genotype counts to the expected
and initial values.
1 | non_rand_mating(0.5,0.3,0.7,c(1,2),1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.