dataset_split {HQM} | R Documentation |
Split dataset for K-fold cross validation
Description
Creates multiple splits of a dataset which is then used in the bandwidth selection with K-fold cross validation.
Usage
dataset_split(I, data)
Arguments
data |
A data frame of time dependent data points. Missing values are allowed. |
I |
The number of individuals that should be left out. Optimally, |
Details
The function dataset_split
takes a data frame and transforms it into data frames with
individuals missing from each data frame. Let
be sets of indices with
,
and
for all
. Then data frames with
individuals are created.
Value
A list of data frames with I
individuals missing in the above way.
See Also
Examples
splitted_dataset = dataset_split(26, pbc2)
[Package HQM version 0.1.0 Index]