Description Usage Arguments Value Examples
Based on the α-level and the the local fdr scores, this function provides the decision on between- and within-group levels.
1 | GT.decision(TestStatistic, alpha = 0.05, eta = alpha)
|
TestStatistic |
An array of list. Each list of the array corresponds to one group, containing the test statistic, stored as X, and the group size, stored as mg. |
alpha |
the targeted FDR level. |
eta |
the targeted FDR level within each group. The default and recommended choice is alpha. |
TestStatistic |
An array of list. Each list of the array corresponds to one group, two additional varialbes: within.group.rej and between.group.rej are stored in each list. |
1 2 3 4 5 | data(GroupTest_simulate)
GroupTest_simulate <- GT.localfdr( GroupTest_simulate, L=2, pi1=0.5, pi2.1=0.5,
muL=c(-1, 1), sigmaL=c(1,2), cL=c(0.4,0.6) )
GroupTest.decision <- GT.decision(GroupTest_simulate, alpha=0.05)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.