forecast_ensemble | R Documentation |
Generate an out-of-sample Ensemble forecast from the CSR and Bagging models
forecast_ensemble( data, y, horizon = 12, K = 20, k = 15, R = 500, pre_testing = "group-joint", seasonal_dummies = TRUE, auto_scenario = TRUE, xreg_scenario, ... )
data |
A tsibble object |
y |
Column name of the variable of interest |
horizon |
Forecast horizon |
K |
Number of variables to be selected after the pre-testing. If K=ncol(x) the pre-testing is redundant (see |
k |
Number of variables in each subset. Must be smaller than K (see |
R |
Number of bootstrap replucations (see |
pre_testing |
The type of pre-testing (see |
seasonal_dummies |
If |
auto_scenario |
If |
xreg_scenario |
Scenario matrix for independent variables if |
... |
Other arguments passed to |
A tibble
df_macro <- ts_transform(get_data(), "ipca", seasonal_dummies = FALSE) df_fcsts <- forecast_ensemble(df_macro, "ipca")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.