Var.data.cc: Variance of the estimated effect size for case-control data

Description Usage Arguments Value Author(s) Examples

View source: R/extra_functions.R

Description

Variance of the estimated effect size for case-control data

Usage

1
Var.data.cc(f, N, s)

Arguments

f

Minor allele frequencies

N

Total sample size (N0+N1)

s

Proportion of cases (N1/N0+N1)

Value

Variance of estimated effect size \hat{β}, V.

Author(s)

Chris Wallace

Examples

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))

corrcoverage documentation built on Dec. 7, 2019, 1:07 a.m.