selectPLScomp {MAIT}R Documentation

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.

Author(s)

Francesc Fernandez, francesc.fernandez.albert@upc.edu

See Also

Validation


[Package MAIT version 1.27.0 Index]