hanaml.BrownExponentialSmoothing.Rdhanaml.BrownExponentialSmoothing is a R wrapper for SAP HANA PAL Brown Exponential Smoothing algorithm.
hanaml.BrownExponentialSmoothing( data, key = NULL, endog = NULL, alpha = NULL, delta = NULL, forecast.num = NULL, adaptive.method = NULL, accuracy.measure = NULL, ignore.zero = NULL, expost.flag = NULL )
| data |
|
|---|---|
| key |
|
| endog |
|
| alpha |
|
| delta |
|
| forecast.num |
|
| adaptive.method |
Defaults to FALSE. |
| accuracy.measure |
No default value. |
| ignore.zero |
Only valid when |
| expost.flag |
Defaults to TRUE. |
Return a list of two DataFrame:
DataFrame 1
Forecast values.
DataFrame 2
Statistics analysis content.
The brown exponential smoothing model is suitable to model the time series with trend but without seasonality. In SAP HANA PAL, both non-adaptive and adaptive brown linear exponential smoothing are provided.
Input DataFrame data:
> data$Collect() ID RAWDATA 1 1 143 2 2 152 3 3 161 4 4 139 ...... 20 20 227 21 21 223 22 22 242 23 23 239 24 24 266
Call the function
> besm <- hanaml.BrownExponentialSmoothing(data = data,
alpha=0.1,
forecast.num=6,
adaptive.method=FALSE,
accuracy.measure="mse",
expost.flag=TRUE)
Output:
> besm[[2]]$Collect() STAT_NAME STAT_VALUE 1 MSE 474.142