Learn R Programming

dual.spls (version 0.1.4)

d.spls.split: Splits data into calibration and validation sets according to wich group belongs each observation

Description

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.

Usage

d.spls.split(X, Xtype, Listecal = NULL)

Value

a numeric vector giving the row indices of the input data selected for calibration

Arguments

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.

Author

Louna Alsouki François Wahl

See Also

d.spls.type,d.spls.calval