| pTwoSided-methods {npGSEA} | R Documentation |
pTwoSided ~~This function returns the two-sided p-value for the corresponding GeneSet
or a list of p-values for a GeneSetCollection.
This method is applicable for all three approximation methods.
pTwoSided(object)
object |
An object of type |
signature(object = "npGSEAResultNorm")Returns a two-sided
p-value for a npGSEAResultNorm object
signature(object = "npGSEAResultBeta")Returns a two-sided
p-value for a npGSEAResultBeta object
signature(object = "npGSEAResultChiSq")Returns a two-sided
p-value for a npGSEAResultChiSq object
signature(object = "npGSEAResultNormCollection")Returns a list
of left-sided p-values for a npGSEAResultNormCollection objects
(1 for each set)
signature(object = "npGSEAResultBetaCollection")Returns a list of
left-sided p-values for a npGSEAResultBetaCollection objects (1 for each set)
signature(object = "npGSEAResultChiSqCollection")Returns a list of
two-sided p-values for a npGSEAResultChiSqCollection objects (1 for each set)
Jessica L. Larson
npGSEAResultNorm-class, pRight
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)
pTwoSided (res)