<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TSA STATIONARITYTEST gives null pvalue in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/TSA-STATIONARITYTEST-gives-null-pvalue/m-p/748740#M4140</link>
    <description>Thank you, I completely forgot to check the periodicity, That time series is part of a large set of time series on which perform the stationarity test and I didn't noticed that most of them were daily but some were not.&lt;BR /&gt;That explains the calculation failure, thank you very much!</description>
    <pubDate>Thu, 17 Jun 2021 18:04:53 GMT</pubDate>
    <dc:creator>Edoedoedo</dc:creator>
    <dc:date>2021-06-17T18:04:53Z</dc:date>
    <item>
      <title>TSA STATIONARITYTEST gives null pvalue</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/TSA-STATIONARITYTEST-gives-null-pvalue/m-p/748711#M4137</link>
      <description>&lt;P&gt;Hi, consider this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;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;&lt;BR /&gt;        pvalue = pvalue;
    endsubmit;
run;&lt;/PRE&gt;
&lt;P&gt;I want to calculate the stationarity test pvalue for the time series (attached as csv):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EduxEdux_0-1623941528137.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60446i0A63CF10064CCEEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EduxEdux_0-1623941528137.png" alt="EduxEdux_0-1623941528137.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However in the results I see:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EduxEdux_1-1623941673386.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60447i335A6F80C83897E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EduxEdux_1-1623941673386.png" alt="EduxEdux_1-1623941673386.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;so that the pvalue is missing and the return code is 0, which according to the documentation (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_012/castsp/castsp_tsa_sect246.htm" target="_blank" rel="noopener"&gt;link&lt;/A&gt;) means&amp;nbsp;&lt;STRONG&gt;Time series is stationary with the default significance level of 0.05&lt;/STRONG&gt; which clearly is false here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: I must use only procedures cas-enabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 14:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/TSA-STATIONARITYTEST-gives-null-pvalue/m-p/748711#M4137</guid>
      <dc:creator>Edoedoedo</dc:creator>
      <dc:date>2021-06-17T14:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: TSA STATIONARITYTEST gives null pvalue</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/TSA-STATIONARITYTEST-gives-null-pvalue/m-p/748735#M4138</link>
      <description>&lt;P&gt;Your data seems to be weekly, but you put interval=day. That might fix your problem.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 17:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/TSA-STATIONARITYTEST-gives-null-pvalue/m-p/748735#M4138</guid>
      <dc:creator>imvash</dc:creator>
      <dc:date>2021-06-17T17:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: TSA STATIONARITYTEST gives null pvalue</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/TSA-STATIONARITYTEST-gives-null-pvalue/m-p/748737#M4139</link>
      <description>&lt;P&gt;Also, the&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;augmented Dickey-Fuller test&lt;/EM&gt;&amp;nbsp;&lt;/SPAN&gt;is used in STATIONARITYTEST method&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 17:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/TSA-STATIONARITYTEST-gives-null-pvalue/m-p/748737#M4139</guid>
      <dc:creator>imvash</dc:creator>
      <dc:date>2021-06-17T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: TSA STATIONARITYTEST gives null pvalue</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/TSA-STATIONARITYTEST-gives-null-pvalue/m-p/748740#M4140</link>
      <description>Thank you, I completely forgot to check the periodicity, That time series is part of a large set of time series on which perform the stationarity test and I didn't noticed that most of them were daily but some were not.&lt;BR /&gt;That explains the calculation failure, thank you very much!</description>
      <pubDate>Thu, 17 Jun 2021 18:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/TSA-STATIONARITYTEST-gives-null-pvalue/m-p/748740#M4140</guid>
      <dc:creator>Edoedoedo</dc:creator>
      <dc:date>2021-06-17T18:04:53Z</dc:date>
    </item>
  </channel>
</rss>

