Learn R Programming

mdatools (version 0.9.1)

pca.crossval: Cross-validation of a PCA model

Description

Does the cross-validation of a PCA model

Usage

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

Arguments

model

a PCA model (object of class pca)

x

a matrix with data values (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 pcares with results of cross-validation