Description Usage Arguments Value See Also Examples
error_wavmap
is a functional that computes the
root-mean-squared forecast error (RMSE) or mean absolute
forecast error (MAE) of the direct forecast for
several wavelet models.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
x |
A tibble returned by the function |
df |
A data frame. The first column of the data frame
must be the base variable for constructing the
dependent variable, the multiperiod ahead
value to be forecasted, x_{t + h}. If |
lags |
An integer vector defining the lags of the
regressors. If |
.H |
An integer representing the maximum horizon step. |
.K |
An integer, the number of pseudo-out-of-sample forecasts. |
ic |
Information criterion, |
.var |
A string to determine how the model will be
specificated: |
.diff |
Logical |
dev |
A string, |
xreg |
Data frame. Exogeunous variable not subjected
to be lagged. The number of rows must be the same as in |
... |
Further arguments passed to
|
A tibble containing wavelet options and mean of the forecast error.
wavsigmap::map_wav_args
,
wavsigmap::signal
, error
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | wavmap <- wavsigmap::map_wav_args(list(
wavelet = c("haar", "s8"),
thresh.fun = c("universal", "adaptive")
))
error_wavmap(wavmap, df = inf[1],
lags = c(1, 1),
.H = 2, .K = 4)
error_wavmap(wavmap, df = gdp[1],
lags = c(1, 1),
.H = 2, .K = 4, .diff = TRUE) %>%
dplyr::filter(dplyr::near(
mean, min(mean, na.rm = TRUE)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.