Description Usage Arguments Value Author(s) Examples
Convenience function to calculate variance of a binomial variable with n=2 and p=p, equal to the variance of coded genotype under an additive genetic model and Hardy-Weinberg proportions.
1 | twopq(p)
|
p |
a vector of allele frequencies |
The vector of binomial variances, 2p(1-p).
Toby Johnson Toby.x.Johnson@gsk.com
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.