Description Usage Arguments Value Examples
View source: R/covariate_methods.R
Benchmarking wrapper: Given a multiple testing method, convert it so that it takes a simulation object (see simulation function) and a nominal level alpha as inputs
1 | continuous_wrap(mt_method, nbins = 20)
|
mt_method |
Multiple testing method (e.g. a function such as gbh or ddhf) |
nbins |
Integer, number of equally sized bins into which to stratify hypotheses |
A new multiple testing function which has an interface of the form f(sim_data_frame, alpha)
1 2 3 4 5 6 7 8 | sim_df <- du_ttest_sim(20000,0.95, 1.5)
sim_df$group <- groups_by_filter(sim_df$filterstat, 20)
obj <- tst_gbh(sim_df$pvalue, sim_df$group, .1)
sum(rejected_hypotheses(obj))
tst_gbh_continuous <- continuous_wrap(tst_gbh)
obj2 <- tst_gbh_continuous(sim_df, .1)
sum(rejected_hypotheses(obj2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.