The function d.spls.errorcv computes the sum of squared errors of a validation set according to a calibration set cvcal used
to fit the Dual-SPLS regression. This function is an internal function used in the cross validation procedure in order to determine
the best number of latent variables of any of the Dual-SPLS versions.
d.spls.errorcv(
cvcal,
X,
Y,
ncomp,
dspls = "lasso",
ppnu = 0.9,
nu2,
indG,
gamma
)a numeric vector representing the errors for each fitted model
a numeric vector representing the index of the calibration set to be used in the fitting.
a numeric matrix.
a numeric vector representing the response values.
a numeric vector of the number of latent numbers to use while computing the errors.
the norm type of the Dual-SPLS regression applied. Default value is lasso. Options are pls, LS,
ridge, GLA, GLB and GLC.
a positive real value, in \([0,1]\). ppnu is the desired
proportion of variables to shrink to zero for each component (see Dual-SPLS methodology).
a positive real value. nu2 is a constraint parameter used in the ridge norm.
a numeric vector of group index for each observation. It is used in the cases of the group lasso norms.
a numeric vector of the norm \(\Omega\) of each \(w_g\) in the case of GLB norm.
Louna Alsouki François Wahl
d.spls.cv,d.spls.lasso