Learn R Programming

MetaboAnalystR (version 2.0.0)

RSVM: 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