hanaml.DoubleExponentialSmoothing.Rdhanaml.DoubleExponentialSmoothing is a R wrapper for SAP HANA PAL Double Exponential Smoothing algorithm.
hanaml.DoubleExponentialSmoothing( data, key = NULL, endog = NULL, alpha = NULL, beta = NULL, forecast.num = NULL, phi = NULL, damped = NULL, accuracy.measure = NULL, ignore.zero = NULL, expost.flag = NULL, prediction.confidence.1 = NULL, prediction.confidence.2 = NULL )
| data |
|
|---|---|
| key |
|
| endog |
|
| alpha |
|
| beta |
|
| forecast.num |
|
| phi |
|
| damped |
Defaults to FALSE. |
| accuracy.measure |
No default value. |
| ignore.zero |
Only valid when |
| expost.flag |
Defaults to TRUE. |
| prediction.confidence.1 |
|
| prediction.confidence.2 |
|
Returns a list of two DataFrame:
DataFrame 1
Forecast values.
DataFrame 2
Statistics analysis content.
Double Exponential Smoothing model is suitable to model the time series with trend
but without seasonality.
In the model there are two kinds of smoothed quantities: smoothed signal and smoothed trend.
Input DataFrame data:
> data$Collect() ID RAWDATA 1 1 143 2 2 152 3 3 161 ...... 21 21 223 22 22 242 23 23 239 24 24 266
Call the function:
> desm <- hanaml.DoubleExponentialSmoothing(data = data,
alpha=0.501,
beta=0.072,
forecast.num=6,
phi=NULL,
damped=NULL,
accuracy.measure="mse",
ignore.zero=NULL,
expost.flag=TRUE,
prediction.confidence.1=0.8,
prediction.confidence.2=0.95)
Output:
> desm[[2]]$Collect() STAT_NAME STAT_VALUE 1 MSE 274.896