getMultiVarLocusPower: Calculates the power of rare variant locus discovery across a...

Description Usage Arguments Value Examples

Description

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

Usage

1
getMultiVarLocusPower(f, AF, sum_var, R, K, N, r, p_thres_cc_locus_multi)

Arguments

f

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

AF

Allele frequency (numeric, 0-1).

sum_var

The sum of all heterozygous allele freuqencies (p * 1-p) for each replicates (numeric)

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_multi

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

Value

The statistical power (numeric, 0-1).

Examples

1
getMultiVarLocusPower(0.2, 1e-4, 0.6, 2.5, 0.01, 20000, 1, 2.5e-06)

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