Description Usage Arguments Details Value
The combinated forecasts and prediction intervals are calculated
by weights given by weightprob
. Besides, the methods used for model averaging
are filtered by threshold ratios for yearly, quarterly and monthly series.
1 2 3 4 5 6 7 8 9 10 11 | comb_forec(
dataset,
weightprob,
Threshold,
level,
combine = "mean",
methodname = "comb",
show.methods = FALSE,
parallel = FALSE,
num.cores = 2
)
|
dataset |
a list of time series. See details for the required format. |
weightprob |
a matrix with |
Threshold |
a vector with 3 threshold ratios that are used for selecting appropriate methods for yearly, quarterly and monthly series, respectively. |
level |
the confidence level of prediction intervals that are used for combination. |
combine |
string representing the interval combination methods. "mean", "weightedmean" or "median". |
methodname |
string. the name used to name the combined forecasting results. |
show.methods |
logical. If |
parallel |
logical. If |
num.cores |
the specified amount of parallel processes to be used if parallel = TRUE. |
dataset
must be a list with each element having the following format:
the number of observations in the time series.
the number of required forecasts.
interval of the time series. Possible values are "YEARLY", "QUARTERLY", "MONTHLY" & "OTHER".
a time series of length n
(the historical data).
a time series of length h
(the future data).
a matrix with F
rows and h
columns. Each row contains
the forecasts of each method in methods
.
a list with each element being the matrix of lower bounds for certain confidence level.
a list with each element being the matrix of upper bounds for certain confidence level.
A list with the elements having the following structure
a matrix with F+1
rows and h
columns where
the first F
rows represent the point forecasts of benchmark methods
and the last row represents the point forecasts by model averaging.
a list with one element that contains a matrix. The matrix with
F+1
rows and h
columns where the first F
rows represent
the lower bounds of benchmark methods and the last row represents the
lower bounds by model averaging.
a list with one element that contains a matrix. The matrix with
F+1
rows and h
columns where the first F
rows represent
the upper bounds of benchmark methods and the last row represents the
upper bounds by model averaging.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.