Description Usage Arguments Details Value Examples
Given a list of 'population' minor allele frequencies 'mafs' and population odds ratios 'ors', for two groups of size n1, n2 generates lists of MAFs m1, m2 such that
1 | or_solve(mafs, ors, n1 = 1000, n2 = 1000)
|
mafs |
list of 'population' minor allele frequencies |
ors |
list of 'population' odds ratios |
n1 |
size of group 1 |
n2 |
size of group 2 |
OR(m1,m2)=m1(1-m2)/(m2(1-m1))=ors (m1 n1 + m2 n2)/(n1+n2) = mafs
n x 2 array where n=length(mafs); n[,1] is MAFs in group 1, n[,2] MAFS in group 2.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.