bankStat {NewmanOmics} | R Documentation |
The Newman Banked Statistic is used to compare an individual sample to a cohort of similar samples.
bankStat(bankObj, testSet, bankMatrix) createBank(bankMatrix)
bankObj |
Compressed representation of the cohort being compared to. |
testSet |
Matrix containing data from one or more individual samples to be compared to the bank. |
bankMatrix |
Data for the bank of "normal" or "untreated" or "baseline" control samples. |
A list containing two matrices: the nu.statistics
and the p.values
.
## Not run: # Bank Object consisting of row means, estimate of std deviation and background distribution input1 <- read.csv(file = "filepath.csv",row.names = 1) # Dataset to be tested against the bank input2 <- read.csv(file = "filepath.csv", row.names = 1) # Dataset that comprises the bank input3 <- read.csv(file = "filepath.csv", row.names = 1) bankObj <- data.matrix(input1) testSet <- data.matrix(input2) bankMatrix <- data.matrix(input3) bankStat(bankObj, testSet, bankMatrix) ## End(Not run)