hanaml.SingleExponentialSmoothing {hana.ml.r} | R Documentation |
hanaml.SingleExponentialSmoothing is a R wrapper for PAL Single Exponential Smoothing algorithm.
hanaml.SingleExponentialSmoothing(conn.context, data, key = NULL, endog = NULL, alpha = NULL, delta = NULL, forecast.num = NULL, adaptive.method = NULL, accuracy.measure = NULL, ignore.zero = NULL, expost.flag = NULL, prediction.confidence.1 = NULL, prediction.confidence.2 = NULL)
conn.context |
|
data |
|
key |
|
endog |
|
alpha |
|
delta |
|
forecast.num |
|
adaptive.method |
|
accuracy.measure |
No default value. |
ignore.zero |
|
expost.flag |
|
prediction.confidence.1 |
|
prediction.confidence.2 |
|
Single Exponential Smoothing model is suitable to model the time series without trend and seasonality.
In the model, the smoothed value is the weighted sum of previous smoothed value and previous observed value.
PAL provides two simple exponential smoothing algorithms: single exponential smoothing
and adaptive-response-rate simple exponential smoothing.
The adaptive-response-rate single exponential smoothing algorithm may have an advantage
over single exponential smoothing in that it allows the value of alpha to be modified.
Return a list of two DataFrame:
DataFrame 1
Forecast values.
DataFrame 2
Statistics analysis content.
## Not run: Input DataFrame data: > data$Collect() ID RAWDATA 1 1 200.0 2 2 135.0 3 3 195.0 4 4 197.5 5 5 310.0 6 6 175.0 7 7 155.0 8 8 130.0 9 9 220.0 10 10 277.5 11 11 235.0 > sesm <- hanaml.SingleExponentialSmoothing(conn.context, alpha = 0.1, delta = 0.2, forecast.num = 12, adaptive.method = FALSE, accuracy.measure = list('MPE', 'MSE'), ignore.zero = TRUE, expost.flag = TRUE, prediction.confidence.1 = 0.8, prediction.confidence.2 = 0.95) Output: > sesm[[2]]$Collect() STAT_NAME STAT_VALUE 1 MPE -0.05117142 2 MSE 3438.33212531 ## End(Not run)