Learn R Programming

mdatools (version 0.9.4)

plsda.crossval: Cross-validation of a PLS-DA model

Description

Does the cross-validation of a PLS-DA model

Usage

plsda.crossval(model, x, c, y, center, scale, method)

Arguments

model

a PLS-DA model (object of class plsda)

x

a matrix with x values (predictors from calibration set)

c

a vetor with c values (classes from calibration set)

y

a matrix with dummy y-values for PLS regression

center

logical, do mean centering or not

scale

logical, do standardization or not

method

method for calculating PLS model.

Value

object of class plsdares with results of cross-validation