Description Usage Arguments Value
View source: R/model_fitting.R
Split reported case integer time series into train and validate time series through thinning.
1 | train_val_split(reported, frac_train = 0.75)
|
reported |
An integer vector of reported cases. |
frac_train |
A numeric between 0 and 1 for fraction of data used to train lambda validation. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.