TD_DICKEY_FULLER Function Example | Teradata Vantage - TD_DICKEY_FULLER Example - Teradata Vantage

Database Unbounded Array Framework Time Series Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
ncd1634149624743.ditamap
dita:ditavalPath
ruu1634160136230.ditaval
dita:id
ncd1634149624743

TD_DICKEY_FULLER Input Table TimeSeriesDataSetsD4

DataSetID SeqNo TimeValue Magnitude
552 1 1985-03-15 4.8
552 2 1985-06-15 5.1
552 3 1985-09-15 5.8
552 4 1985-12-15 5.7
... ... ... ...
552 101 2010-03-15 5.0
552 102 2010-06-15 5.5
552 103 2010-09-15 4.3
552 104 2010-12-15 3.6

Example: TD_DICKEY_FULLER Call

EXECUTE FUNCTION INTO VOLATILE ART(ART2)
TD_DICKEY_FULLER(
   SERIES_SPEC(TABLE_NAME(TimeSeriesDataSetsD4),ROW_AXIS(SEQUENCE(SeqNo)),
      SERIES_ID(DatasetID), PAYLOAD(FIELDS(MAGNITUDE),CONTENT(REAL))),
   FUNC_PARAMS(ALGORITHM('NONE'))
);

TD_DICKEY_FULLER Output

SELECT * FROM ART2;
DataSetID 552
ROW_I 0
NUM_SAMPLES 104
ALGORITHM NONE
T_STAT -6.97000031676718E-001
P_VALUE 8.47525067728908E-001
NULL_HYP ACCEPT