Learn R Programming

plsRglm (version 1.7.1)

summary.cv.plsRmultiModel: Summary method for experimental multivariate PLS2 CV models

Description

Summarizes repeated k-fold cross-validation results from cv.plsRmulti.

Usage

# S3 method for cv.plsRmultiModel
summary(object, verbose = TRUE, ...)

Value

A list of per-partition summary matrices with the same aggregate columns used by summary.cv.plsRmodel for Q2, PRESS, and RSS, plus response-specific PRESS, RSS, Q2, and R2 columns.

Arguments

object

An object of class "cv.plsRmultiModel".

verbose

Should progress information be displayed?

...

Further arguments passed to methods.

Details

The returned object inherits from "summary.cv.plsRmodel" so that cvtable and the existing plot method can be reused for the aggregated multivariate criteria.

See Also

cv.plsRmulti, cvtable

Examples

Run this code
set.seed(123)
X <- matrix(rnorm(60 * 4), ncol = 4)
Y <- cbind(
  y1 = X[, 1] - 0.5 * X[, 2] + rnorm(60, sd = 0.1),
  y2 = 0.3 * X[, 2] + X[, 3] + rnorm(60, sd = 0.1)
)

cv_fit <- cv.plsRmulti(Y, X, nt = 2, K = 3, NK = 1, verbose = FALSE)
summary(cv_fit, verbose = FALSE)

Run the code above in your browser using DataLab