createTestDataFold: Create the test fold data for validation

Description Usage Arguments See Also Examples

View source: R/latrend.R

Description

Create the test fold data for validation

Usage

1
createTestDataFold(data, trainData, id = getOption("latrend.id"))

Arguments

data

A data.frame representing the complete dataset.

trainData

A data.frame representing the training data, which should be a subset of data.

id

The trajectory identifier variable.

See Also

createTrainDataFolds

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

Examples

1
2
3
data(latrendData)
trainDataList <- createTrainDataFolds(latrendData, id = "Id", folds = 10)
testData1 <- createTestDataFold(latrendData, trainDataList[[1]], id = "Id")

latrend documentation built on April 14, 2021, 5:08 p.m.