Learn R Programming

MAIT (version 1.6.0)

selectPLScomp: Looks for the optimum number of components to be considered for the PLSDA

Description

Function selectPLScomp finds the optimum number of components to be used by the Partial Least Squares and linear Discriminant Algorithm (PLSDA).

Usage

selectPLScomp(data, class, max.comp)

Arguments

data
A numerical matrix containing the data
class
Vector containing the class label of each sample.
max.comp
Maximum number of components to be considered.

Value

A numeric value of the optimal number of components to be considered in a PLSDA run.

See Also

Validation