crossval.regmodel: Cross-validation of a regression model

Description Usage Arguments Value

View source: R/regmodel.R

Description

Does cross-validation of a regression model

Usage

1
crossval.regmodel(obj, x, y, cv, cal.fun)

Arguments

obj

a regression model (object of class regmodel)

x

a matrix with x values (predictors from calibration set)

y

a matrix with y values (responses from calibration set)

cv

number of segments (if cv = 1, full cross-validation will be used)

cal.fun

reference to function for model calibration

Value

object of class plsres with results of cross-validation


mdatools documentation built on Sept. 13, 2021, 9:07 a.m.