RSVM: R-SVM core code

View source: R/stats_classification.R

RSVMR Documentation

R-SVM core code

Description

Core code to perform R-SVM

Usage

RSVM(x, y, ladder, CVtype, CVnum = 0)

Arguments

x

Row matrix of data

y

Class label: 1 / -1 for 2 classes

ladder

Input the ladder

CVtype

Integer (N fold CV), "LOO" leave-one-out CV, "bootstrape" bootstrape CV

CVnum

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

Author(s)

Jeff Xiajeff.xia@mcgill.ca McGill University, Canada License: GNU GPL (>= 2)


xia-lab/MetaboAnalystR documentation built on Dec. 23, 2024, 3:44 p.m.