createTestDataFolds {latrend}R Documentation

Create all k test folds from the training data

Description

Create all k test folds from the training data

Usage

createTestDataFolds(data, trainDataList, ...)

Arguments

data

A data.frame representing the complete dataset.

trainDataList

A list of data.frame representing each of the data training folds. These should be derived from data.

...

Arguments passed to createTestDataFold.

See Also

Other validation methods: createTestDataFold(), createTrainDataFolds(), latrendBoot(), latrendCV(), lcModel-data-filters

Examples

data(latrendData)

if (require("caret")) {
  trainDataList <- createTrainDataFolds(latrendData, folds = 10, id = "Id")
  testDataList <- createTestDataFolds(latrendData, trainDataList)
}

[Package latrend version 1.6.1 Index]