View source: R/summary-forecast.R
forecast_roll | R Documentation |
This function conducts rolling window forecasting.
forecast_roll(object, n_ahead, y_test, num_thread = 1, ...)
## S3 method for class 'bvharcv'
print(x, digits = max(3L, getOption("digits") - 3L), ...)
is.bvharcv(x)
## S3 method for class 'bvharcv'
knit_print(x, ...)
## S3 method for class 'olsmod'
forecast_roll(object, n_ahead, y_test, num_thread = 1, ...)
## S3 method for class 'normaliw'
forecast_roll(object, n_ahead, y_test, num_thread = 1, use_fit = TRUE, ...)
## S3 method for class 'ldltmod'
forecast_roll(
object,
n_ahead,
y_test,
num_thread = 1,
level = 0.05,
stable = FALSE,
sparse = FALSE,
med = FALSE,
lpl = FALSE,
use_fit = TRUE,
verbose = FALSE,
...
)
## S3 method for class 'svmod'
forecast_roll(
object,
n_ahead,
y_test,
num_thread = 1,
level = 0.05,
use_sv = TRUE,
stable = FALSE,
sparse = FALSE,
med = FALSE,
lpl = FALSE,
use_fit = TRUE,
verbose = FALSE,
...
)
Rolling windows forecasting fixes window size.
It moves the window ahead and forecast h-ahead in y_test
set.
predbvhar_roll
class
Hyndman, R. J., & Athanasopoulos, G. (2021). Forecasting: Principles and practice (3rd ed.). OTEXTS.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.