<?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: Forecasting with Time Series in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886107#M4715</link>
    <description>What SAS software product do you have available to perform the task?</description>
    <pubDate>Mon, 24 Jul 2023 15:36:31 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2023-07-24T15:36:31Z</dc:date>
    <item>
      <title>Forecasting with Time Series</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886081#M4714</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a sample of 260 observations (52 weeks of sales for 5 items within two categories)&lt;/P&gt;&lt;P&gt;I would like to forecast weekly sales for each item for the next 4-6 week or forecast on weekly bases.&lt;/P&gt;&lt;P&gt;How can I perform this task.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&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="Majid2023_0-1690202822602.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86047i1D47435A316E22FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Majid2023_0-1690202822602.png" alt="Majid2023_0-1690202822602.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 12:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886081#M4714</guid>
      <dc:creator>Majid2023</dc:creator>
      <dc:date>2023-07-24T12:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Time Series</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886107#M4715</link>
      <description>What SAS software product do you have available to perform the task?</description>
      <pubDate>Mon, 24 Jul 2023 15:36:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886107#M4715</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2023-07-24T15:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Time Series</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886116#M4716</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What SAS software do you have?&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;SAS 9.4 M(x) or SAS Viya 3.5 or SAS Viya 4?&lt;/LI&gt;
&lt;LI&gt;Forecast Server / SAS HPF (High-Performance Forecasting) / SAS ETS / SAS Econometrics / SAS Visual Forecasting?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best would be to do hierarchical forecasting as your items are nested within categories. &lt;BR /&gt;You can win some accuracy by doing proper hierarchical reconciliation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also treat all item time series as independent from each other.&lt;/P&gt;
&lt;P&gt;This is for sure not the best option, but it's simple!&lt;BR /&gt;You can start with Exponential Smoothing Methods (ESM). &lt;BR /&gt;Time Series Regression methods (or Machine Learning methods like Long Short-Term Memory (LSTM) networks or other Recurrent Neural Network (RNN) architectures) are certainly better, but it will take you more time. ESM cannot deal with regressors (influential time series that may help to forecast your target time series more accurately), but I cannot see these X-series in your example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hence, try something like this :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc esm data=sales out=nextweeks;
   by category item;
   id date interval=week;
   forecast _numeric_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 16:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886116#M4716</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-24T16:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Time Series</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886117#M4717</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446182"&gt;@Majid2023&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I remember now you have posted in Programming board before (same question).&lt;/P&gt;
&lt;P&gt;Regression on multiple items in different categories&lt;BR /&gt;(Home &amp;gt;&amp;gt; Programming &amp;gt;&amp;gt; Programming)&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/td-p/885994" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/td-p/885994&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You wanted to solve this with classical regression, but that was rightfully advised against by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to stay close to PROC REG&lt;BR /&gt;, you might try PROC AUTOREG (regression that takes AUTO-CORRELATION into account):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc autoreg data=sales;
    by category item;
    model y = t / nlag=2 method=ml;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 16:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886117#M4717</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-24T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Time Series</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886230#M4718</link>
      <description>&lt;P&gt;SAS EG&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 12:17:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886230#M4718</guid>
      <dc:creator>Majid2023</dc:creator>
      <dc:date>2023-07-25T12:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Forecasting with Time Series</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886621#M4719</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/446182"&gt;@Majid2023&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS EG (SAS Enterprise Guide) is not a SAS module. It's just an interface that helps you performing tasks (and flows of tasks). You can probably launch the EG-app without having SAS installed, but that will be useless as nothing will work!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am no longer working in SAS EG (working in SAS Viya now) , ... so cannot visualize anything myself right now ... , but I know SAS EG has a "Regression for Time Series Analysis" or "Time Series Regression" node. You need SAS/ETS (Econometrics and Time Series) module though, otherwise these "time series analysis" - nodes will not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 12:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Forecasting-with-Time-Series/m-p/886621#M4719</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-27T12:40:58Z</dc:date>
    </item>
  </channel>
</rss>

