Description Usage Arguments Value References Examples
View source: R/stratified_methods.R
stratified_bh: Stratified Benjamini Hochberg
1 | stratified_bh(unadj_p, groups, alpha)
|
unadj_p |
Numeric vector of unadjusted p-values. |
groups |
Factor to which different hypotheses belong |
alpha |
Significance level at which to apply method |
SBH multiple testing object
Sun, Lei, et al. "Stratified false discovery control for large-scale hypothesis testing with application to genome-wide association studies." Genetic epidemiology 30.6 (2006): 519-530.
Yoo, Yun J., et al. "Were genome-wide linkage studies a waste of time? Exploiting candidate regions within genome-wide association studies." Genetic epidemiology 34.2 (2010): 107-118.
1 2 3 4 | sim_df <- du_ttest_sim(20000,0.95, 1.5)
sim_df$group <- groups_by_filter(sim_df$filterstat, 20)
obj <- stratified_bh(sim_df$pvalue, sim_df$group, .1)
sum(rejected_hypotheses(obj))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.