Description Usage Arguments Value Author(s) References See Also
View source: R/exportedFuncs.R
SWAP.Kby.Measurement
can be supplied to a
kTSP classifier training function to select
an optimal k by adding top-scoring pairs to
maximize a given measurement such as accuracy or
sensitivitiy over the training data.
1 2 3 | SWAP.Kby.Measurement(inputMat, phenoGroup,
scoreTable, classes, krange,
k_opts=list(disjoint=TRUE, measurement="auc")
|
inputMat |
is a numerical matrix containing the measurements (e.g., gene expression data) to be used to build the K-TSP classifier. |
phenoGroup |
is a factor with two levels containing the phenotype information used to train the K-TSP classifier. |
scoreTable |
a data frame output of |
classes |
is a character vector of length 2 providing the phenotype class labels (case followed by control). If NULL, the levels of phenoGroup will be taken as the labels. |
krange |
an integer (or a vector of integers) defining the candidate number of Top Scoring Pairs (TSPs) from which the algorithm chooses to build the final classifier. |
k_opts |
is a list of additional variables:
|
A vector of indices of length k indicating
which pairs from scoreTable
should be
selected.
Bahman Afsari bahman.afsari@gmail.com, Luigi Marchionni marchion@jhu.edu, Wikum Dinalankara wdinala1@jhmi.edu
See switchBox for the references.
SWAP.Kby.Ttest
,
SWAP.MakeTSPTable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.