Compute matrix with pseudo-validation set
pcv(
X,
ncomp = min(round(nrow(X)/nseg) - 1, col(X), 20),
nseg = 4,
scale = FALSE
)
Pseudo-validation matrix (IxJ)
matrix with calibration set (IxJ)
number of components for PCA decomposition
number of segments in cross-validation
logical, standardize columns of X prior to decompositon or not
This is the old (original) version of PCV algorithm for PCA models. Use pcvpca
instead. Ane check project web-site for details: https://github.com/svkucheryavski/pcv
The method computes pseudo-validation matrix Xpv, based on PCA decomposition of calibration set X and systematic (venetian blinds) cross-validation. It is assumed that data rows are ordered correctly, so systematic cross-validation can be applied