<?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 How to make forecast for the time series data with regular date gaps in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-make-forecast-for-the-time-series-data-with-regular-date/m-p/249344#M1588</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to make my question simple. My sales data have value of zero, meaning that there is no sales occurring at all, say, on Sundays. Therefore, the date is continuous since I do not need to forecast for Sunday sales. Is there any way to make forecast for such a time series data with the date gap?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2016 23:53:17 GMT</pubDate>
    <dc:creator>lizzy28</dc:creator>
    <dc:date>2016-02-10T23:53:17Z</dc:date>
    <item>
      <title>How to make forecast for the time series data with regular date gaps</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-make-forecast-for-the-time-series-data-with-regular-date/m-p/249344#M1588</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to make my question simple. My sales data have value of zero, meaning that there is no sales occurring at all, say, on Sundays. Therefore, the date is continuous since I do not need to forecast for Sunday sales. Is there any way to make forecast for such a time series data with the date gap?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 23:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-make-forecast-for-the-time-series-data-with-regular-date/m-p/249344#M1588</guid>
      <dc:creator>lizzy28</dc:creator>
      <dc:date>2016-02-10T23:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make forecast for the time series data with regular date gaps</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-make-forecast-for-the-time-series-data-with-regular-date/m-p/249358#M1589</link>
      <description>&lt;P&gt;I'm not familiar with the SAS time series procs, but could you generate a consecutive series with a different variable representing 'time'&amp;nbsp;so that it appears as if Monday follows Saturday. &amp;nbsp;Complete the analysis and then move back to using dates. If it requires a date variable this won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ie&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Current_Var New_Var
Monday      1
Tuesday     2
Wednesday   3
Thursday    4
Friday      5
Saturday    6
Monday      7
Tuesday     8&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 03:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-make-forecast-for-the-time-series-data-with-regular-date/m-p/249358#M1589</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-11T03:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to make forecast for the time series data with regular date gaps</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-make-forecast-for-the-time-series-data-with-regular-date/m-p/249450#M1591</link>
      <description>&lt;P&gt;If there is no sales on Sunday, filter Sunday's data out of the input, and use ID INTERVAL = WEEKDAY1W. The default seasonality for WEEKDAY1W is 6 (Monday to Saturday, the 1 in the interval stands for Sunday). If the data only consists of Monday to Friday's sales, use INTERVAL = WEEKDAY16W (1 for Sunday and 6 for Saturday).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample code to use&amp;nbsp;&lt;SPAN&gt;INTERVAL = WEEKDAY1W:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*generate test data with sales from Monday to Saturday only*/&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; format date date7.;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; starting_date = mdy(1,31,2016);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; do i =0 to 700;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; date = starting_date + i;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if mod(i,7) ne 0 then do;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sales = abs(100*rannor(12345));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; end;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; drop i starting_date;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*use WEEKDAY1W interval to handle 6 days a week data*/&lt;/P&gt;
&lt;P&gt;proc hpf data = test seasonality = 6 out= _null_ outfor = outfor;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; id date interval=weekday1w;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; forecast sales;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 14:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-make-forecast-for-the-time-series-data-with-regular-date/m-p/249450#M1591</guid>
      <dc:creator>alexchien</dc:creator>
      <dc:date>2016-02-11T14:53:29Z</dc:date>
    </item>
  </channel>
</rss>

