Learn R Programming

CorReg (version 1.0.5)

CVMSE: Cross validation

Description

Cross validation

Usage

CVMSE(X = X, Y = Y, K = K, intercept = T, methode = 1,
  groupe = NULL)

Arguments

X
covariates matrix (double)
Y
response variable
K
number of classes
intercept
(boolean) with or without an intercept
methode
the methode used by OLS.
groupe
a vector to define the groups used for cross-validation (to obtain a reproductible result)