Description Usage Arguments Value Author(s) Examples
View source: R/extra_functions.R
Variance of the estimated effect size for case-control data
1 | Var.data.cc(f, N, s)
|
f |
Minor allele frequencies |
N |
Total sample size (N0+N1) |
s |
Proportion of cases (N1/N0+N1) |
Variance of estimated effect size \hat{β}, V.
Chris Wallace
1 2 3 4 5 | maf = runif(100, 0.05, 0.5)
N0 = 5000 # number of controls
N1 = 5000 # number of cases
Var.data.cc(f = maf, N = N0 + N1, s = N1/(N0+N1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.