Example: TD_ARIMAVALIDATE SQL Call
This function creates the primary results set (layer).
EXECUTE FUNCTION INTO VOLATILE ART(ARMA_VAL_MLE)
TD_ARIMAVALIDATE(
ART_SPEC(TABLE_NAME(arima_val)),
FUNC_PARAMS(FIT_METRICS(1),RESIDUALS(1))
);
TD_ARIMAVALIDATE Output
IdColumns |
ROW_I |
Num_Samples |
Var_Count |
AIC |
SBIC |
40-41 |
0 |
3 |
4 |
17.5382 |
16.3364 |
Example: TD_EXTRACT_RESULTS Call
EXECUTE FUNCTION INTO ART(multivar_art_res)
TD_EXTRACT_RESULTS(
ART_SPEC(
TABLE_NAME(arima_val),
LAYER(ARTFITRESIDUALS)
)
);
TD_EXTRACT_RESULTS Output
IdColumns |
ROW_I |
Actual_Value |
Calc_Value |
Residual |
40-41 |
0 |
972.4300 |
971.4575 |
0.9724 |
40-41 |
1 |
1408.6999 |
1282.2787 |
125.8912 |
40-41 |
2 |
-268.8800 |
772.0995 |
-1040.9715 |
40-41 |
3 |
907.5600 |
1457.0766 |
-549.5166 |
... |
... |
... |
... |
... |