Description Usage Arguments Value Examples
estimate.cd empirically estimates c_d to control the Type I error rate under the global null hypothesis that no signals exist. In this algorithm, M number of Monte Carlo samples, drawn under the global null hypothesis of no signals, are used to estimate c_d. The estimate of c_d is pre-computed in estimate.cd and passed to AFNC.
1 | estimate.cd(d, M = 10000, alpha = 0.05)
|
d |
number of variables (SNPs). |
M |
number of Monte Carlo samples. The larger the M the more accurate the estimate. |
alpha |
significance level for false positive control. |
Estimate of c_d for controlling Type I error rate under the global null, to be used as an input in AFNC.
1 2 3 4 5 6 | # Load "AFNC" library and example data.
library("AFNC")
data(example_data)
set.seed(1) # Set seed
cd = estimate.cd(d=length(p.value), M=10000, alpha=0.05) # estimate c_d
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.