SWAP.Kby.Ttest: K selection for a kTSP classifier.

Description Usage Arguments Value Author(s) References See Also

Description

SWAP.Kby.Ttest can be supplied to a kTSP classifier training function to select an optimal k via performing t-tests.

Usage

1
2
3
SWAP.Kby.Ttest(inputMat, phenoGroup, 
  scoreTable, classes, krange, 
  k_opts=list())

Arguments

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 SWAP.MakeTSPTable containing TSPs and the accuracy of individuals pairs over the training data.

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 not used and is left for conforming to the arguments of k_selection_fn.

Value

A vector of indices of length k indicating which pairs from scoreTable should be selected.

Author(s)

Bahman Afsari bahman.afsari@gmail.com, Luigi Marchionni marchion@jhu.edu, Wikum Dinalankara wdinala1@jhmi.edu

References

See switchBox for the references.

See Also

SWAP.Kby.Measurement, SWAP.MakeTSPTable


marchion/switchBox documentation built on May 9, 2019, 4:07 p.m.