TailRankTest-class {TailRank} | R Documentation |
This is the class representation for the results of a tail-rank test to find biomarkers in a microarray data set. It includes methods for summarizing and plotting the results of the test.
Although objects can be created, as usual, using new
, the only
reliable way to create valid objects is to use the
TailRankTest
function. See the description of that
function for details on how the tail-rank test works.
statistic
:direction
:N1
:N2
:specificity
:tolerance
:confidence
:cutoff
:model
:tau
:rho
:object
x
. The optional argument
overlay
is a logical flag. If overlay=TRUE
, then the
histogram is overlain with a curve representing the null
distribution. The default value of overlay
is FALSE
.x
into a logical vector, which takes on a TRUE
value
whenever the tail-rank statistic exceeds the significance cutoff.object
.Kevin R. Coombes <kcoombes@mdanderson.org>
TailRankTest
,
tailRankPower
,
biomarkerPowerTable
,
matrixMean
,
toleranceBound
# generate some fake data to use in the example nr <- 40000 nc <- 110 fake.data <- matrix(rnorm(nr*nc), ncol=nc) fake.class <- rep(c(TRUE, FALSE), c(40, 70)) # perform the tail-rank test null.tr <- TailRankTest(fake.data, fake.class) # get a summary of the results summary(null.tr) # plot a histogram of the statistics hist(null.tr, overlay=TRUE) # get the actual statistics stats <- getStatistic(null.tr) # get a vector that selects the "positive" calls for the test is.marker <- as.logical(null.tr) # the following line should evaluate to the number of rows, nr = 40000 sum( is.marker == (stats > null.tr@cutoff) )