NSCtrainInterface {ClassifyR} | R Documentation |
pamr.train
Function from pamr
CRAN PackageRestructures variables from ClassifyR framework to be compatible with
pamr.train
definition.
## S4 method for signature 'matrix' NSCtrainInterface(measurements, classes, ...) ## S4 method for signature 'DataFrame' NSCtrainInterface(measurements, classes, ..., verbose = 3) ## S4 method for signature 'MultiAssayExperiment' NSCtrainInterface(measurements, targets = names(measurements), ...)
measurements |
Either a |
classes |
Either a vector of class labels of class |
targets |
If |
... |
Variables not used by the |
verbose |
Default: 3. A number between 0 and 3 for the amount of progress messages to give. This function only prints progress messages if the value is 3. |
This function is an interface between the ClassifyR framework and pamr.train
.
A list with elements as described in pamr.train
.
Dario Strbenac
pamr.train
for the function that was interfaced to.
if(require(pamr)) { # Samples in one class with differential expression to other class. genesMatrix <- sapply(1:25, function(geneColumn) c(rnorm(100, 9, 1))) genesMatrix <- cbind(genesMatrix, sapply(1:25, function(geneColumn) c(rnorm(75, 9, 1), rnorm(25, 14, 1)))) classes <- factor(rep(c("Poor", "Good"), each = 25)) NSCtrainInterface(genesMatrix, classes) }