Usage
## S3 method for class 'pls':
valid(object, criterion = c("all", "MSEP", "R2", "Q2"),
validation = c("Mfold", "loo"), folds = 10,
max.iter = 500, tol = 1e-06, ...)
## S3 method for class 'spls':
valid(object, criterion = c("all", "MSEP", "R2", "Q2"),
validation = c("Mfold", "loo"), folds = 10,
max.iter = 500, tol = 1e-06, ...)
## S3 method for class 'plsda':
valid(object, method = c("all", "max.dist", "centroids.dist",
"mahalanobis.dist"),
validation = c("Mfold", "loo"), folds = 10,
max.iter = 500, tol = 1e-06, ...)
## S3 method for class 'splsda':
valid(object, method = c("all", "max.dist", "centroids.dist",
"mahalanobis.dist"),
validation = c("Mfold", "loo"), folds = 10,
max.iter = 500, tol = 1e-06, ...)Arguments
object
object of class inheriting from "pls", "plsda",
"spls" or "splsda".
criterion
what type of validation criterion to be used for pls or spls. Should be a subset
of "MSEP", "R2" or "Q2". Default is "all".
method
prediction method to be applied for plsda or splsda. Should be a subset
of "max.dist", "centroids.dist", "mahalanobis.dist".
Default is "all". See
validation
character. What kind of (internal) validation to use, matching one of "Mfold" or
"loo" (see below). Default is "Mfold".
folds
the folds in the Mfold cross-validation. See Details.
max.iter
integer, the maximum number of iterations.
tol
a not negative real, the tolerance used in the iterative algorithm.