<?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: Stationarity in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550692#M3515</link>
    <description>&lt;P&gt;If you use SAS Viya, you can use TSA.STATIONARITYTEST function. See the example below (I copied from documentation), which uses sashelp.air data set in CAS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="castsp_tsa002645" class="aa-section"&gt;
&lt;DIV&gt;
&lt;PRE class="xis-codeBlock"&gt;proc tsmodel data=mycas.air outscalar=mycas.outscalars;
   id date interval=month;
   var air;
   outscalars stationary1 stationary2;
   require tsa;
   submit;
   declare object TSA(tsa);
   stationary1=1; stationary2=1;
   rc = TSA.STATIONARITYTEST(air,,,,,pvalue);
   *test with the default significant level=0.05;
   if rc =1 then stationary1 = 0;
   *test with significant level = 0.1;
   if pvalue &amp;gt; 0.1 then stationary2 = 0;
   endsubmit;
run;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="booknav_bottom"&gt;You can get more information regarding the TSA package and this function at&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=fstsp&amp;amp;docsetTarget=fstsp_tsa_sect091.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=fstsp&amp;amp;docsetTarget=fstsp_tsa_sect091.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If you do not use SAS Viya, take a look at&amp;nbsp;&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_macros_sect007.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_macros_sect007.htm&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Hope it helps!&lt;/DIV&gt;</description>
    <pubDate>Fri, 12 Apr 2019 15:29:00 GMT</pubDate>
    <dc:creator>imvash</dc:creator>
    <dc:date>2019-04-12T15:29:00Z</dc:date>
    <item>
      <title>Stationarity</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550679#M3514</link>
      <description>&lt;P&gt;Dear community&lt;/P&gt;&lt;P&gt;I have a monthly time serire data and i want test the stationarity of this serie.&lt;/P&gt;&lt;P&gt;Can one give me any suggestion!!&lt;/P&gt;&lt;P&gt;regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 15:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550679#M3514</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2019-04-12T15:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Stationarity</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550692#M3515</link>
      <description>&lt;P&gt;If you use SAS Viya, you can use TSA.STATIONARITYTEST function. See the example below (I copied from documentation), which uses sashelp.air data set in CAS:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="castsp_tsa002645" class="aa-section"&gt;
&lt;DIV&gt;
&lt;PRE class="xis-codeBlock"&gt;proc tsmodel data=mycas.air outscalar=mycas.outscalars;
   id date interval=month;
   var air;
   outscalars stationary1 stationary2;
   require tsa;
   submit;
   declare object TSA(tsa);
   stationary1=1; stationary2=1;
   rc = TSA.STATIONARITYTEST(air,,,,,pvalue);
   *test with the default significant level=0.05;
   if rc =1 then stationary1 = 0;
   *test with significant level = 0.1;
   if pvalue &amp;gt; 0.1 then stationary2 = 0;
   endsubmit;
run;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="booknav_bottom"&gt;You can get more information regarding the TSA package and this function at&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=fstsp&amp;amp;docsetTarget=fstsp_tsa_sect091.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?docsetId=fstsp&amp;amp;docsetTarget=fstsp_tsa_sect091.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;If you do not use SAS Viya, take a look at&amp;nbsp;&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_macros_sect007.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/etsug/63939/HTML/default/viewer.htm#etsug_macros_sect007.htm&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Hope it helps!&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Apr 2019 15:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550692#M3515</guid>
      <dc:creator>imvash</dc:creator>
      <dc:date>2019-04-12T15:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Stationarity</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550701#M3516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't use SAS viya.&lt;/P&gt;&lt;P&gt;I used the ADF and KPSS test.&lt;/P&gt;&lt;P&gt;Based on their output the time serie has a trend.&lt;/P&gt;&lt;P&gt;But when i want remove the trend using proc reg&lt;/P&gt;&lt;P&gt;Proc reg data=database;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;model y= T;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;T is the date variable from Jan 2015 to Dec 2018.&lt;/P&gt;&lt;P&gt;data database;&lt;/P&gt;&lt;P&gt;set database;&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;P&gt;TY= y-B*T;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;The TY which i created has no value.&lt;/P&gt;&lt;P&gt;I don't know how i can remove the trend of my variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 15:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550701#M3516</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2019-04-12T15:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stationarity</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550795#M3517</link>
      <description>There are two types of non-Stationarity. The first is stochastic non-Stationarity (which I think is what one uses the ADF and KPSS test for). This is dealt with by differencing.&lt;BR /&gt;&lt;BR /&gt;The second type is a deterministic non-Stationarity. This is commonly dealt with by specifying a quadratic or cubic time variable.&lt;BR /&gt;&lt;BR /&gt;You have to know which type of non-Stationarity you have and specify the right correction.</description>
      <pubDate>Fri, 12 Apr 2019 21:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550795#M3517</guid>
      <dc:creator>noetsi</dc:creator>
      <dc:date>2019-04-12T21:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stationarity</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550919#M3518</link>
      <description>&lt;P&gt;Hi noetsi&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I have&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;a deterministic non-Stationarity.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Should I regress my variable on the date (date is from Jan 2015 to Dec 2018) variable like that&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;proc reg data=data;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;model Y=date;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2019 22:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Stationarity/m-p/550919#M3518</guid>
      <dc:creator>Lok07</dc:creator>
      <dc:date>2019-04-14T22:26:28Z</dc:date>
    </item>
  </channel>
</rss>

