runTests | R Documentation |
Enables doing classification schemes such as ordinary 10-fold, 100
permutations 5-fold, and leave one out cross-validation. Processing in
parallel is possible by leveraging the package BiocParallel
.
## S4 method for signature 'matrix'
runTests(measurements, outcome, ...)
## S4 method for signature 'DataFrame'
runTests(
measurements,
outcome,
crossValParams = CrossValParams(),
modellingParams = ModellingParams(),
characteristics = S4Vectors::DataFrame(),
...,
verbose = 1
)
## S4 method for signature 'MultiAssayExperiment'
runTests(measurements, outcome, ...)
measurements |
Either a |
... |
Variables not used by the |
outcome |
Either a factor vector of classes, a |
crossValParams |
An object of class |
modellingParams |
An object of class |
characteristics |
A |
verbose |
Default: 1. A number between 0 and 3 for the amount of progress messages to give. A higher number will produce more messages as more lower-level functions print messages. |
An object of class ClassifyResult
.
Dario Strbenac
#if(require(sparsediscrim))
#{
data(asthma)
CVparams <- CrossValParams(permutations = 5)
tuneList <- list(nFeatures = seq(5, 25, 5), performanceType = "Balanced Error")
selectParams <- SelectParams("t-test", tuneParams = tuneList)
modellingParams <- ModellingParams(selectParams = selectParams)
runTests(measurements, classes, CVparams, modellingParams,
DataFrame(characteristic = c("Assay Name", "Classifier Name"),
value = c("Asthma", "Different Means"))
)
#}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.