smooth.acc | R Documentation |
Accuracy measures for smoothing results.
smooth.acc(smoothresult, againstself = T, testset)
smoothresult |
An object from the output of |
againstself |
Whether to test forecast accuracy against the training set or a testing set |
testset |
A set of univariate time series data. Can be a vector (type double) or a data.table. |
A data.table containing MSE and MAPE of the inputted smoothing method.
smooth.acc(sma.dt(crudenow$close,5,nahead=10), againstself=F, crudetest$close) smooth.acc(es.Wrapper(crudenow$close, HoltWinters(crudenow$close, alpha=0.5, beta=0.5, gamma=F), nahead=10),againstself=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.