BHRejVec: Produce a BHRejVec object

Description Usage Arguments Value Examples

Description

BHRejVec defines BHRejVec class and produce a BHRejVec object. A BHRejVec object is a combination of BHRej objects of different FDR values. Also, a samVec object is used to construct a BHRejVec object. See PIE.BHRejVec for plotting instructions.

Usage

1
BHRejVec(FDR = 0.1, SVobj, ifF = FALSE, eps = 0.5)

Arguments

FDR

A vector of numeric values between 0 and 1.

SVobj

A samVec object containing data and necessary information.

ifF

Test type. When ifF == TRUE, standard F tests are used and; otherwise, equivalence F tests.

eps

A numeric value specifying the equivalence test tolerance. Only valid when ifF == FALSE.

Value

A BHRejVec object is returned. A BHRejVec is a list contains

BHProc

A list of BHRej objects with different FDR values

labels

The labels indicating groups specified in the samVec object.

dataType

A string the same with the dataType in the samVec object

testType

A string of "DE" or "EE" based on ifF or not.

FDR

A numeric vector containing the FDR values used.

Examples

1
2
3
4
5
6
7
8
9
data(GCwPADataA)
t1 = samVec(GCwPADataA, selCol = list(1:5, 6:10, 11:15, 16:20, 21:25, 26:30), labels = LETTERS[1:6])
EE = BHRejVec(FDR = c(0.1, 0.05, 0.01, 0.005, 0.001), SVobj = t1)
DE = BHRejVec(FDR = c(0.1, 0.05, 0.01, 0.005, 0.001), SVobj = t1, ifF = TRUE)
pdf("test.pdf", width = 12, height = 8)
PIE(DE, EE, figcol = 3, mainPar = list(y = 1.5, main = "TITLE", cex = 2.5),
 innerPIE = list(radius = 1, col = c("blue", "red", "green")),
 innerPar = list(mar = c(1.1, 2.1, 6.1, 0)), legPar = list(x = "bottomright", cex = 1.5))
dev.off()

ziyanyin/DEEE documentation built on May 4, 2019, 11:23 p.m.