train_val_split {incidental} | R Documentation |
Split reported case data
Description
Split reported case integer time series into train and validate time series through thinning.
Usage
train_val_split(reported, frac_train = 0.75)
Arguments
reported |
An integer vector of reported cases. |
frac_train |
A numeric between 0 and 1 for fraction of data used to train lambda validation. |
Value
A list(reported_train, reported_val) where the elements reported_train and reported_val are both length, Tobs, and 'frac_train' of the counts fall in reported_train, the rest in reported_val.
[Package incidental version 0.1 Index]