simf1g | R Documentation |
Simulate genotype counts from F1 individuals
simf1g(n, g1, g2, alpha = 0, xi1 = 1/3, xi2 = 1/3)
n |
Sample size. |
g1 |
The first parent's genotype. |
g2 |
The second parent's genotype. |
alpha |
The double reduction rate. |
xi1 |
The first parent's preferential pairing parameter. |
xi2 |
The second parent's preferential pairing parameter. |
A vector of counts, where element i
is the number of
simulated individuals with genotype i-1
.
David Gerard
set.seed(1)
simf1g(n = 10, g1 = 1, g2 = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.