Description Usage Arguments Value References Examples
View source: R/stratified_methods.R
clfdr: Cai's local fdr based method
1 | clfdr(unadj_p, groups, alpha, lfdr_estimation = "fdrtool")
|
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" |
Clfdr multiple testing object
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).
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.