Description Usage Arguments Value Note Author(s) See Also Examples
Function produces forecasts with Temporal Hierarchies using models from the smooth package.
1 | smooth.thief(data,h,type=c("es","ssarima","ces","ges"),...)
|
data |
Input time series. Can be ts object. |
h |
Forecast horizon. |
type |
Can be "es" to use Exponential Smoothing, "ssarima" to use state-space ARIMA, "ces" to use Complex Exponential Smoothing, "ges" to use Generalised Exponential Smoothing. |
... |
Additional arguments passed forecasting model. |
An object of class "forecast
".
The function plot
produces a plot of the forecasts.
It has a list containing the following elements:
model |
The estimated model. |
fitted |
Fitted values of the model. |
x |
Actuals provided in the call of the model. |
mean |
Point forecasts of the model. |
This function is created to work with Temporal Hierarchies (thief package).
Nikolaos Kourentzes, nikolaos@kourentzes.com
1 2 3 4 5 | ## **Not run:**
library(thief)
frc <- thief(referrals,forecastfunction=smooth.thief,type="es")
plot(frc)
## End(**Not run**)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.