Description Usage Arguments Value See Also Examples
error_vin_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 using data vintages.
1 2 3 4 5 6 7 8 9 10 11 12 13 | error_vin_wavmap(
x,
.vin,
lags,
.H,
.K,
ic = BIC,
.var = "all",
.diff = FALSE,
dev = "RMSE",
xreg = NULL,
...
)
|
x |
A tibble returned by the function
|
.vin |
List of data vintages (data frame) for each variable.
The first vintage is related to the dependent variable and
the number of columns of each data frame must be the
same as the number of the out-of-sample forecasts ( |
lags |
A 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_vin
1 2 3 4 5 6 7 8 9 10 11 12 13 | set.seed(1)
v1 <- tibble::tibble(v1_t1 = c(sample(100, 98, replace = TRUE), NA, NA),
v1_t2 = c(v1_t1[1:98], 500, NA),
v1_t3 = c(v1_t2[1:99], 280))
wavmap <- wavsigmap::map_wav_args(list(
wavelet = c("haar", "s8"),
thresh.fun = c("universal", "adaptive")
))
error_vin_wavmap(wavmap, .vin = list(v1),
lags = c(1, 1),
.H = 2, .K = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.