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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.