scoring(data, labels, method = "SAM", pcompute = "tdist", nperms = 1000, memory.limit = TRUE, verbose = TRUE)If 'pcompute="tdist", the statistic is computed only based on the given class labels, and the p-value is computed from the t-distribution with (Number of samples - 2) degrees of freedom.
macat vignette.evalScoring data(stjd)
# compute gene-wise regularized t-statistics for
# T- vs. B-lymphocyte ALL:
isT <- as.numeric(stjd$labels=="T")
TvsB <- scoring(stjd$expr,isT,method="SAM",pcompute="none")
summary(TvsB$observed)
Run the code above in your browser using DataLab