stratified_bh: stratified_bh: Stratified Benjamini Hochberg

Description Usage Arguments Value References Examples

View source: R/stratified_methods.R

Description

stratified_bh: Stratified Benjamini Hochberg

Usage

1
stratified_bh(unadj_p, groups, alpha)

Arguments

unadj_p

Numeric vector of unadjusted p-values.

groups

Factor to which different hypotheses belong

alpha

Significance level at which to apply method

Value

SBH multiple testing object

References

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.

Examples

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))

nignatiadis/ihwPaper documentation built on Jan. 18, 2021, 3:13 p.m.