Description Usage Arguments Value Author(s)
View source: R/rolling_window_single.R
This function creates a single step for a rolling forecasting origin for a specifc one step forecast method. Multi step forecasts are computed recursively with the one step forecast method. Thus, h-step forecast for h = 1,..., horizon for window_size many steps can be computed. The forecasting method can be an autoregression or a neural network (multilayer perceptron). The ccps parameter controls the number of coefficients chosen for each wavelet and smooth part level individually.
1 2 3 4 5 6 7 8 9 | rolling_window_single(
i,
data,
ccps,
agg_per_lvl,
horizon = 14,
window_size = 365,
method = "r"
)
|
i |
number indicating index for parallel computation. |
data |
Time series with n values. |
ccps |
Vector with numbers which are associated with wavelet and smooth levels from decomposition. The last number is associated with the smooth part level. The preceding numbers are associated with the wavelet levels which are ordered increasingly. Each number determines the number of coefficient used per level. The coefficient selection follows a fixed scheme. |
agg_per_lvl |
Vector carrying numbers whose index is associated with the wavelet level. The numbers indicate the number of time in points used for aggregation from the original time series. |
horizon |
Number indicating horizon for forecast from 1 to horizon. |
window_size |
Number indicating how many points are used to create cross validation. |
method |
String indicating which method to use (r = Autoregression, nn = Neural Network). |
List of parameter with a 2D matrix of the forecast error.
Quirin Stier
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.