GT.decision {GroupTest} | R Documentation |
Between- and within-group decisions
Description
Based on the \alpha
-level and the the local fdr scores, this
function provides the decision on between- and within-group levels.
Usage
GT.decision(TestStatistic, alpha = 0.05, eta = alpha)
Arguments
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. |
Value
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. |
Examples
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)
[Package GroupTest version 1.0.1 Index]