d.spls.split: Splits data into calibration and validation sets according to...

View source: R/d.spls.split.R

d.spls.splitR Documentation

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)

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.

Value

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

Author(s)

Louna Alsouki François Wahl

See Also

d.spls.type,d.spls.calval


dual.spls documentation built on April 19, 2023, 1:07 a.m.