Description Usage Arguments Details Value
View source: R/choose.threshold.R
According to the fitted values of the pre-trained algorithm, the optimal threshold ratio used for model averaging is searched from a set of pre-set threshold ratios.
1 2 3 4 5 6 7 8 9 | choose.threshold(
dataset,
fitProb,
ratio,
combine = "mean",
level,
parallel = FALSE,
num.cores = 2
)
|
dataset |
a list of time series. See details for the required format. |
fitProb |
a matrix with |
ratio |
a vector with pre-set threshold ratios. The threshold ratio quantifies as a number between 0 and 1, where 0 indicates all the benchmark methods are selected and 1 indicates only the benchmark method with the minimal value of scores is selected. |
combine |
string representing the interval combination methods. "mean", "weightedmean" or "median". |
level |
the confidence level of prediction intervals that are used for combination. |
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 following elements
numeric, the optimal threshold ratio searched for yearly data.
numeric, the optimal threshold ratio searched for quarterly data.
numeric, the optimal threshold ratio searched for monthly data.
a matrix of MSIS values for each pre-set threshold ratio to yearly data.
a matrix of MSIS values for each pre-set threshold ratio to quarterly data.
a matrix of MSIS values for each pre-set threshold ratio to monthly data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.