Predict.class: Get predicted class probability

View source: R/biomarker_utils.R

Predict.classR Documentation

Get predicted class probability

Description

Get predicted class probability

Usage

Predict.class(x.train, y.train, x.test, clsMethod = "pls", lvNum, imp.out = F)

Arguments

x.train

Input the x training samples

y.train

Input the y training samples

x.test

Input the x testing samples

clsMethod

Se the classification method, default is set to pls

lvNum

Input the number of levels

imp.out

Logical, set to F by default

Author(s)

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


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