Description Usage Arguments Value Examples
Tests the power to detect a gene locus using de novo data varying sample size.
1 2 | plotDnLocusBySampleSize(R, N, r = 1, q, f, p_thres_denovo_locus = 0.05,
name = "Test", col = "#e41a1c")
|
R |
Relative risk (numeric). |
N |
Maximum sample size (integer). |
r |
Case:Control ratio (numeric). |
q |
Number of functional rare variants per person in seleceted regions (integer). |
f |
Proportion of functional rare variants that mediate risk for the disorder (numeric, 0-1). |
p_thres_denovo_locus |
p-value threshold after correction for multiple comparisons (numeric, 0-1). |
name |
Prefix for plot filenames (text). |
col |
Color of the line (hex). |
r |
Case:Control ratio (numeric). |
A PDF showing the estimated statistical power as the sample size is varied.
1 2 3 4 5 6 7 8 9 | R <- 25
N <- 5000
r <- 1
q <- 0.0249
f <- 0.2
p_thres_denovo_locus <- 0.05 / 20000
name <- "Test1"
col <- "#e41a1c"
plotDnLocusBySampleSize()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.