createTestDataFold {latrend} | R Documentation |
Create the test fold data for validation
Description
Create the test fold data for validation
Usage
createTestDataFold(data, trainData, id = getOption("latrend.id"))
Arguments
data |
A |
trainData |
A |
id |
The trajectory identifier variable. |
See Also
createTrainDataFolds
Other validation methods:
createTestDataFolds()
,
createTrainDataFolds()
,
latrendBoot()
,
latrendCV()
,
lcModel-data-filters
Examples
data(latrendData)
if (require("caret")) {
trainDataList <- createTrainDataFolds(latrendData, id = "Id", folds = 10)
testData1 <- createTestDataFold(latrendData, trainDataList[[1]], id = "Id")
}
[Package latrend version 1.6.1 Index]