Description Usage Arguments Details Value Examples
Creates a cross-validated train set for a given number of time series iterations.
1 |
data |
a dataframe with the time series data that the user wants to iterate. |
cv_size |
Numeric. Cross-validation window that the user want to test the performance of a model. |
lead_time |
Numeric. How many periods ahead (lead time) the user wants to predict. |
This function follows a tidy approach to create train sets applicable to time series data. It admits tsibble, tibble and data frame objects.
a tibble with rows=iterations.
iteration
rest of the columns
1 | traints(rainfall_cr, cv_size=6, lead_time=3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.