Functions for forecast univariate time series using the Optimised Theta Method presented in the arxiv paper (Fioruci et al, 2015).
If the theta parameter is not specified so the Generalised Rolling Origin Evaluation is used
for select the theta value over the thetaList argument.
If TRUE, the multiplicative seasonal decomposition is used.
If NULL, quarterly and monthly time series are tested for statistically seasonal behaviour, with 95% of significance. Default is NULL.
theta
The value of theta parameter. If theta = NULL the theta parameter is estimated using the Generalised Rolling Origin Evaluation.
tLineExtrap
A forecasting function for extrapolation the second theta-line. Default is expSmoot.
g
The error type that will be used by groe function for select the theta value in the estimation process.
The possibility values for g is "sAPE", "APE", "AE" and "SE".
If theta is not NULL the g argument is not used. Default is "sAPE".
approach
The approach set-up for groe parameters (n1, m, H, p). One letter between 'a' to 'h' according to Fioruci et al (2015).
n1
The first origin for Generalised Rolling Origin Evaluation.
This argument is not used if theta!=NULL or approach!=NULL.
m
The number of movements of the origin in each step. This argument is not used if theta!=NULL or approach!=NULL.
H
The number of predictions in each step. This argument is not used if theta!=NULL or approach!=NULL.
p
The number of origin updates. This argument is not used if theta!=NULL or approach!=NULL.
thetaList
A vector with the possible values for theta. This argument is not used if theta argument is not NULL.
mc.cores
Number of cores that will be used for estimate the theta parameter. It is not accepted mc.cores>1 on Windows SO.
...
Additional arguments for tLineExtrap.
Details
These functions are fully automatic, you just need to pass your time series. Particular cases are obtained by:
If theta = 1 the tLineExtrapModel method is computed;
If theta = 2 so the Standard Theta Method of Assimakopoulos and Nikolopoulos (2000) is computed.
By default (s=NULL), the 90% significance seasonal Z-test, used by Assimakopoulos and Nikolopoulos (2000), is applied for quarterly and monthly time series.
Value
An list containing the elements:
$y
The original time series.
$mean
A time series element with the forecasting points.
$fitted
A time series element with the fitted points.
$residuals
A time series element with the residual points.
$theta
The estimated theta value.
$tLineExtrap_par
The estimated parameters of tLineExtrap method.
$weights
The estimated weights values.
Note
The thetaM function is just a particular case of otm with theta=2.
Author(s)
Jose Augusto Fiorucci, Francisco Louzada and Bao Yiqi
References
Fioruci J.A., Pellegrini T.R., Louzada F., Petropoulos F. (2015). The Optimised Theta Method. Free available at http://arxiv.org/abs/1503.03529.
Assimakopoulos, V. and Nikolopoulos k. (2000). The theta model: a decomposition approach to forecasting. International Journal of Forecasting 16, 4, 521-530.