Learn R Programming

corrcoverage (version 1.2.1)

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

Description

Variance of the estimated effect size for case-control data

Usage

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{\beta}\), V.

Examples

Run this code
# 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