Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

createTestDataFold

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 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

Examples

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

latrend

A Framework for Clustering Longitudinal Data

v1.1.2
GPL (>= 2)
Authors
Niek Den Teuling [aut, cre] (<https://orcid.org/0000-0003-1026-5080>), Steffen Pauws [ctb], Edwin van den Heuvel [ctb], Copyright © 2021 Koninklijke Philips N.V. [cph]
Initial release
2021-04-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.