p_from_alpha | R Documentation |
Given the rate of double reduction and the major allele frequency, this function will calculate the gametic frequencies.
p_from_alpha(alpha, p, ploidy)
alpha |
A numeric vector containing the double reduction parameter(s).
This should be a
vector of length |
p |
The allele frequency of the major allele. |
ploidy |
The ploidy of the species. |
A numeric vector of length ploidy / 2 + 1
, where element
i
is the probability that a gamete carries i-1
copies of
the major allele.
David Gerard
p_from_alpha(0.2, 0.5, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.