Learn R Programming

mdatools (version 0.9.1)

simca.crossval: Cross-validation of a SIMCA model

Description

Does the cross-validation of a SIMCA model

Usage

simca.crossval(model, x, cv, center = T, scale = F)

Arguments

model

a SIMCA model (object of class simca)

x

a matrix with x values (predictors 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

Value

object of class simcares with results of cross-validation