Learn R Programming

mdatools (version 0.9.1)

pls.crossval: Cross-validation of a PLS model

Description

Does the cross-validation of a PLS model

Usage

pls.crossval(model, x, y, cv, center, scale, method, jack.knife = T)

Arguments

model

a PLS model (object of class pls)

x

a matrix with x values (predictors from calibration set)

y

a matrix with y values (responses from calibration set)

cv

number of segments (if cv = 1, full cross-validation will be used)

center

logical, do mean centering or not

scale

logical, do standardization or not

method

algorithm for computing PLS model

jack.knife

logical, do jack-knifing or not

Value

object of class plsres with results of cross-validation