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

Description Usage Arguments Value Author(s) See Also

View source: R/selectPLScomp.R

Description

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

Usage

1
2
3
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


MAIT documentation built on Nov. 8, 2020, 5:43 p.m.