Hi, consider this code:
proc tsmodel data=MYCAS.ZZZ outscalar=MYCAS.AAA;
id DATE interval=day;
var VALORE;
outscalars pvalue rc;
require tsa;
submit;
declare object tsa(tsa);
rc = tsa.stationaritytest(VALORE,,,,'SSM',pvalue);
rc = rc;
pvalue = pvalue;
endsubmit;
run;
I want to calculate the stationarity test pvalue for the time series (attached as csv):
However in the results I see:
so that the pvalue is missing and the return code is 0, which according to the documentation (link) means Time series is stationary with the default significance level of 0.05 which clearly is false here.
So what's wrong? Can you help me to figure out what is happening? Moreover, what kind of test is stationaritytest performing? Is unclear from the documentation.
Note: I must use only procedures cas-enabled.
Thanks
Regards
Your data seems to be weekly, but you put interval=day. That might fix your problem.
Your data seems to be weekly, but you put interval=day. That might fix your problem.
Also, the augmented Dickey-Fuller test is used in STATIONARITYTEST method.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!