Description Usage Arguments Details Value Author(s) See Also Examples
Restructures variables from ClassifyR framework to be compatible with
pamr.train
definition.
1 2 3 4 5 6 | ## 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.
1 2 3 4 5 6 7 8 9 10 | 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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.