05-bankStat: Newman Banked Statistic

Description Usage Arguments Value Examples

Description

The Newman Banked Statistic is used to compare an individual sample to a cohort of similar samples.

Usage

1
2
bankStat(bankObj, testSet, bankMatrix)
createBank(bankMatrix)

Arguments

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.

Value

A list containing two matrices: the nu.statistics and the p.values.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## 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)

NewmanOmics documentation built on June 13, 2018, 3:01 a.m.