Learn R Programming

ktspair (version 1.0)

make.consecutive.int: Transform the group vector into a binary vector

Description

This function transforms the vector corresponding to the groups of the observations into a binary vector.

Usage

make.consecutive.int(y)

Arguments

y
A numeric or character vector.

Value

Return a vector containing only 0 and 1.

References

D. Geman, C. d'Avignon, D. Naiman and R. Winslow, "Classifying gene expression profiles from pairwise mRNA comparisons," Statist. Appl. in Genetics and Molecular Biology, 3, 2004.

A.C. Tan, D.Q. Naiman, L. Xu, R.L. Winslow, D. Geman, "Simple decision rules for classifying human cancers from gene expression profiles," Bioinformatics, 21: 3896-3904, 2005.

J. Damond, supervised by S. Morgenthaler and S. Hosseinian, "Presentation and study of robustness for several methods to classify individuals based on their gene expressions", Master thesis, Swiss Federal Institute of Technology Lausanne (Switzerland), 2011. J. Damond, S. Morgenthaler, S. Hosseinian, "The robustness of the TSP and the k-TSP and the computation of ROC curves", paper is submitted in Bioinformatics, December 2011. Jeffrey T. Leek (). tspair: Top Scoring Pairs for Microarray Classification. R package version 1.10.0.

See Also

ktspcalc, ktspplot,predict.ktsp, summary.ktsp

Examples

Run this code
  ## Not run: 
#   ## Load data
#   data(ktspdata) 
#   make.consecutive.int(grp)
#  ## End(Not run)

Run the code above in your browser using DataLab