d.spls.errorcv | R Documentation |
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
)
cvcal |
a numeric vector representing the index of the calibration set to be used in the fitting. |
X |
a numeric matrix. |
Y |
a numeric vector representing the response values. |
ncomp |
a numeric vector of the number of latent numbers to use while computing the errors. |
dspls |
the norm type of the Dual-SPLS regression applied. Default value is |
ppnu |
a positive real value, in |
nu2 |
a positive real value. |
indG |
a numeric vector of group index for each observation. It is used in the cases of the group lasso norms. |
gamma |
a numeric vector of the norm |
a numeric vector representing the errors for each fitted model
Louna Alsouki François Wahl
d.spls.cv,d.spls.lasso
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.