Learn R Programming

npGSEA (version 1.8.0)

DF-methods: ~~ Methods for Function DF ~~

Description

This function returns the degrees of freedom for the chi-sq approximation of a corresponding GeneSet or a list of degrees of freedom for a GeneSetCollection. This method is applicable for only the chi-sq approximation method.

Usage

DF(object)

Arguments

object
An object of type npGSEAResultChiSq or npGSEAResultChiSqCollection

Methods

signature(object = "npGSEAResultChiSq")
Returns the degrees of freedom for a npGSEAResultChiSq object
signature(object = "npGSEAResultChiSqCollection")
Returns a list of the degrees of freedom for a npGSEAResultChiSqCollection objects (1 for each set)

See Also

npGSEAResultChiSq-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= "chiSq")  
    DF(res)

Run the code above in your browser using DataLab