d.spls.split | R Documentation |
The function d.spls.split
divides the data X
into a calibration and a validation set using
the Kennard and Stone strategy for each group at a time and according to the number of calibration desired
from each group.
d.spls.split(X, Xtype, Listecal = NULL)
X |
a numeric matrix. |
Xtype |
a vector of index specifying to which group belongs each observation. |
Listecal |
a vector specifying how many observations from each group should be selected as calibration. |
a numeric vector giving the row indices of the input data selected for calibration
Louna Alsouki François Wahl
d.spls.type,d.spls.calval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.