generate.stl_decomposition | R Documentation |
Produces new data with the same structure by resampling the residuals using a block bootstrap procedure. This method can only generate within sample, and any generated data out of the trained sample will produce NA simulations.
## S3 method for class 'stl_decomposition'
generate(x, new_data, specials = NULL, ...)
x |
A fitted model. |
new_data |
A tsibble containing the time points and exogenous regressors to produce forecasts for. |
specials |
(passed by |
... |
Other arguments passed to methods |
Bergmeir, C., R. J. Hyndman, and J. M. Benitez (2016). Bagging Exponential Smoothing Methods using STL Decomposition and Box-Cox Transformation. International Journal of Forecasting 32, 303-312.
as_tsibble(USAccDeaths) %>%
model(STL(log(value))) %>%
generate(as_tsibble(USAccDeaths), times = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.