Create the test fold data for validation
createTestDataFold(data, trainData, id = getOption("latrend.id"))
createTrainDataFolds
Other validation methods:
createTestDataFolds()
,
createTrainDataFolds()
,
latrendBoot()
,
latrendCV()
,
lcModel-data-filters
data(latrendData)
if (require("caret")) {
trainDataList <- createTrainDataFolds(latrendData, id = "Id", folds = 10)
testData1 <- createTestDataFold(latrendData, trainDataList[[1]], id = "Id")
}
#> Loading required package: caret
#> Loading required package: lattice
#>
#> Attaching package: ‘caret’
#> The following object is masked from ‘package:latrend’:
#>
#> confusionMatrix