clfdr: clfdr: Cai's local fdr based method

Description Usage Arguments Value References Examples

View source: R/stratified_methods.R

Description

clfdr: Cai's local fdr based method

Usage

1
clfdr(unadj_p, groups, alpha, lfdr_estimation = "fdrtool")

Arguments

unadj_p

Numeric vector of unadjusted p-values.

groups

Factor to which different hypotheses belong

alpha

Significance level at which to apply method

lfdr_estimation

Method used to estimate the loca fdr, defaults to "fdrtool"

Value

Clfdr multiple testing object

References

Cai, T. Tony, and Wenguang Sun. "Simultaneous testing of grouped hypotheses: Finding needles in multiple haystacks." Journal of the American Statistical Association 104.488 (2009).

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 <- clfdr(sim_df$pvalue, sim_df$group, .1)
     sum(rejected_hypotheses(obj))

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