powered by
Variance of the estimated effect size for case-control data
Var.data.cc(f, N, s)
Minor allele frequencies
Total sample size (N0+N1)
Proportion of cases (N1/N0+N1)
Variance of estimated effect size \(\hat{\beta}\), V.
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab