GT.decision: Between- and within-group decisions

Description Usage Arguments Value Examples

Description

Based on the α-level and the the local fdr scores, this function provides the decision on between- and within-group levels.

Usage

1
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

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)


Search within the GroupTest package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.