Description Usage Arguments Details Value Author(s) References See Also Examples
Returns robets model applied to y
.
1 2 3 4 5 6 7 8 | robets(y, model = "ZZZ", damped = NULL, alpha = NULL, beta = NULL,
gamma = NULL, phi = NULL, additive.only = FALSE, lambda = NULL,
lower = c(rep(1e-04, 3), 0.8), upper = c(rep(0.9999, 3), 0.98),
opt.crit = c("roblik", "tau2", "lik", "mse", "amse", "sigma", "mae"),
bounds = c("both", "usual", "admissible"), ic = c("robaicc", "robaic",
"robbic", "aicc", "bic", "aic"), use.initial.values = TRUE,
opt.initial.values = FALSE, rob.start.initial.values = TRUE,
opt.sigma0 = FALSE, k = 3, nmse = 1, ...)
|
y |
a numeric vector or time series |
model |
A three-letter string indicating the method using the framework terminology of Hyndman et al. (2008). The first letter denotes the error type ("A", "M" or "Z"); the second letter denotes the trend type ("N","A" or "Z"); and the third letter denotes the season type ("N","A","M" or "Z"). In all cases, "N"=none, "A"=additive, "M"=multiplicative and "Z"=automatically selected. So, for example, "ANN" is simple exponential smoothing with additive errors, "MAM" is multiplicative Holt-Winters' method with multiplicative errors, and so on. It is also possible for the model to be of class " |
damped |
If TRUE, use a damped trend. If NULL, both damped and non-damped trends will be tried and the best model (according to the information criterion |
alpha |
Value of alpha. If NULL, it is estimated. |
beta |
Value of beta. If NULL, it is estimated. |
gamma |
Value of gamma. If NULL, it is estimated. |
phi |
Value of phi. If NULL, it is estimated. |
additive.only |
If TRUE, will only consider additive models. Default is FALSE. |
lambda |
Box-Cox transformation parameter. Ignored if NULL. Otherwise, data transformed before model is estimated. When |
lower |
Lower bounds for the parameters (alpha, beta, gamma, phi) |
upper |
Upper bounds for the parameters (alpha, beta, gamma, phi) |
opt.crit |
Optimization criterion. One of "roblik" (Robust Log-likelihood, default), "tau2" (Tau squared error of the residuals), "mse" (Mean Square Error), "amse" (Average MSE over first |
bounds |
Type of parameter space to impose: |
ic |
Information criterion to be used in model selection. |
use.initial.values |
If |
opt.initial.values |
If |
rob.start.initial.values |
If |
opt.sigma0 |
If |
k |
Value of k in forecasting equations. |
nmse |
Number of steps for AMSE (1<= |
... |
Other undocumented arguments. |
The code is an extended version of the code of the function ets
of the package forecast
of Hyndman and Khandakar (2008). The methodology is an extended version of Gelper et al. (2008). In Crevits and Croux (2016) the methodology of robets
is described in full.
An object of class "robets
".
Ruben Crevits, ruben.crevits@kuleuven.be, https://rcrevits.wordpress.com/research
Crevits, R., and Croux, C (2016) "Forecasting with Robust Exponential Smoothing with Damped Trend and Seasonal Components".Working paper. https://doi.org/10.13140/RG.2.2.11791.18080
Gelper S., Fried R. and Croux C. (2010) "Robust Forecasting with Exponential and Holt-Winters Smoothing".Journal of Forecasting, 29, 285-300. https://doi.org/10.1002/for.1125
Hyndman, R. J., and Khandakar, Y (2008) "Automatic time series forecasting: The forecasting package for R".Journal of Statistical Software 27(3). https://doi.org/10.18637/jss.v027.i03
forecast.robets, plot.robets, plotOutliers, tau2, ets
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.