esWrapper | R Documentation |
Function wrapper for exponential smoothing.
esWrapper(trainset, smoothing, nahead = 0)
trainset |
A set of univariate time series data. Can be a vector (type double) or a data.table. |
smoothing |
An object of class |
nahead |
Number of observations to predict. |
A list containing smoothed
(training set, moving averages, and predicted training values)
and forc
(forecasted values to use against a test set).
esWrapper(crudenow$close, HoltWinters(crudenow$close, alpha=0.5, beta=0.5, gamma=F), nahead=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.