Core code to perform R-SVM
RSVM(x, y, ladder, CVtype, CVnum = 0)
Row matrix of data
Class label: 1 / -1 for 2 classes
Input the ladder
Integer (N fold CV), "LOO" leave-one-out CV, "bootstrape" bootstrape CV
Number of CVs, LOO: defined as sample size, Nfold and bootstrape: user defined, default as sample size outputs a named list Error: a vector of CV error on each level SelFreq: a matrix for the frequency of each gene being selected in each level with each column corresponds to a level of selection and each row for a gene The top important gene in each level are those high-freqent ones