Description Usage Arguments Details Examples
hypo_hwe
computes Hardy-Weinberg genopye frequencies for p ranging from 0 to 1.
1 | hypo_hwe(n = 100L)
|
n |
integer scalar (>= 2, mandatory), length of the allele frequency range |
This function creates a range of allele frequencies ranging from p = 0 to p = 1 and computes the respective genotype frequencies according to Hardy-Weinberg:
q = 1 - p
AA = p^2
Aa = 2pq
aa = q^2
The function returns the results as table.
1 | genotype_hwe <- hypo_hwe(100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.