Learn R Programming

npGSEA (version 1.8.0)

betaStat-methods: ~~ Methods for Function betaStat ~~

Description

This function returns the corresponding beta statistic which is compared to the reference beta distribution for the npGSEA analysis in the gene set in the given experiment.

Usage

betaStat(object)

Arguments

object
An object of type npGSEAResultBeta or npGSEAResultBetaCollection

Methods

signature(object = "npGSEAResultBeta")
Returns the beta-statistic for a npGSEAResultBeta object
signature(object = "npGSEAResultBetaCollection")
Returns a list of the beta-statistics for a npGSEAResultBetaCollection objects (1 for each set)

See Also

npGSEAResultBeta-class

Examples

Run this code
    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= "beta")  
    betaStat(res)

Run the code above in your browser using DataLab