| hanaml.Correlation {hana.ml.r} | R Documentation |
hanaml.Correlation is a R wrapper for PAL correlation.
hanaml.Correlation(conn.context,
data,
key,
cols,
thread.ratio = NULL,
method = NULL,
max.lag = NULL,
calculate.pacf = NULL)
conn.context |
|
data |
|
key |
|
cols |
|
thread.ratio |
Defaults to -1. |
method |
|
max.lag |
|
calculate.pacf |
|
DataFrame
LAG: ID column.
CV: ACV/CCV.
CF: ACF/CCF.
PACF: PACF. Null if cross-correlation is calculated.
## Not run:
Input DataFrame data:
> data$Collect()
TIMESTAMP Y
1 1 88
2 2 84
3 3 85
4 4 85
5 5 84
6 6 85
7 7 83
8 8 85
9 9 88
10 9 89
Invoke the function:
> cr <- hanaml.Correlation(conn, data, key="TIMESTAMP",
cols = c("Y"),
thread.ratio = 0.4,
method = 'auto',
calculate.pacf = TRUE)
Output:
> cr$Collect()
LAG CV CF PACF
1 0 3.640 1.00000000 1.0000000
2 1 0.924 0.25384615 0.2538462
3 2 -0.292 -0.08021978 -0.1546211
4 3 -0.628 -0.17252747 -0.1201993
## End(Not run)