The data filters are applied by latrend prior to model estimation. These filters are used in latrendBoot and latrendCV.

bootSample(data, id, seed = NULL)

trainFold(data, fold, id, folds, seed)

testFold(data, fold, id, folds, seed)

Arguments

data

The data.frame representing the model dataset.

id

The identifier variable name, see idVariable.

seed

Optional seed for ensuring reproducibility.

fold

The fold to select.

folds

Total number of folds to create.

Value

A subset of data of type data.frame.