getSingleVarLocusPower: Calculates the power of rare variant locus discovery in cases...

Description Usage Arguments Value Examples

Description

Calculates the power of rare variant locus discovery in cases and controls.

Usage

1
getSingleVarLocusPower(f, AF, R, K, N, r, p_thres_cc_locus_single)

Arguments

f

Proportion of variants that mediate risk (numeric, 0-1).

AF

Allele frequency (numeric, 0-1).

R

Relative Risk (numeric).

K

Prevalence of the disorder (numeric, 0-1).

N

Sample Size (integer).

r

Case:Control ratio (numeric).

p_thres_cc_locus_single

p-value threshold after correction for multiple comparisons (numeric, 0-1).

Value

The statistical power (numeric, 0-1).

Examples

1
getSingleVarLocusPower(0.2, 1e-4, 2.5, 0.01, 20000, 1, 1.666667e-11)

stephansanders/wgsPowerTest documentation built on May 4, 2019, 1:23 p.m.