zStat-methods {npGSEA}R Documentation

~~ Methods for Function zStat ~~

Description

This function returns the Z-statistic (which is compared to a reference standard normal distribution) for the normal approximation of npGSEA for a corresponding GeneSet or a list of these statistics for a GeneSetCollection. This method is applicable for only the normal approximation method.

Usage

    zStat(object)

Arguments

object

An object of type npGSEAResultNorm or npGSEAResultNormCollection

Methods

signature(object = "npGSEAResultNorm")

Returns the Z-statistic for a npGSEAResultNorm object

signature(object = "npGSEAResultNormCollection")

Returns a list of the Z- statistics for a npGSEAResultNormCollection objects (1 for each set)

Author(s)

Jessica L. Larson

See Also

npGSEAResultNorm-class

Examples

    set.seed(15)
    yFactor <- as.factor( c(rep("treated", 5), rep("control", 5)) )
    xData <- matrix(data=rnorm(length(letters)*10) ,nrow=length(letters), ncol=10)
    rownames(xData) <- letters
    geneSetABC15 <- GeneSet(geneIds=letters[1:15], setName="setABC15")
    res <- npGSEA(x = xData, y = yFactor, set = geneSetABC15, approx= "norm")  
    zStat(res)

[Package npGSEA version 1.20.0 Index]