| hanaml.DoubleExponentialSmoothing {hana.ml.r} | R Documentation |
hanaml.DoubleExponentialSmoothing is a R wrapper for PAL Double Exponential Smoothing algorithm.
hanaml.DoubleExponentialSmoothing (conn.context,
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)
conn.context |
|
data |
|
key |
|
endog |
|
alpha |
|
beta |
|
forecast.num |
|
phi |
|
damped |
|
accuracy.measure |
No default value. |
ignore.zero |
|
expost.flag |
|
prediction.confidence.1 |
|
prediction.confidence.2 |
|
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.
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 143
2 2 152
3 3 161
......
21 21 223
22 22 242
23 23 239
24 24 266
desm <- hanaml.DoubleExponentialSmoothing(conn.context = conn,
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
## End(Not run)