<?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: Regression on multiple items in different categories in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886006#M350122</link>
    <description>&lt;P&gt;You can also read the first 4 articles under Getting Started at this link &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/etsug/etsug_arima_toc.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/etsug/etsug_arima_toc.htm&lt;/A&gt; which is an example of forecasting sales.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jul 2023 15:44:26 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-07-23T15:44:26Z</dc:date>
    <item>
      <title>Regression on multiple items in different categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/885994#M350114</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;Is simple regression works here if yes 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-1690112887294.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/86039i933F02F963C4ECE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Majid2023_0-1690112887294.png" alt="Majid2023_0-1690112887294.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 11:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/885994#M350114</guid>
      <dc:creator>Majid2023</dc:creator>
      <dc:date>2023-07-23T11:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regression on multiple items in different categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/885997#M350115</link>
      <description>&lt;P&gt;I am extremely skeptical that a regression is a good tool to do this type of forecasting. I would think some time series model would work better. Nevertheless:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to add a record for weeks 53, 54, 55, 56, ... for each category and item to the data set, leaving sales as missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then fit the regression using &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_toc.htm" target="_self"&gt;PROC REG&lt;/A&gt; with a BY statement (&lt;FONT face="courier new,courier"&gt;by category item;&lt;/FONT&gt;), and use the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_reg_syntax10.htm" target="_self"&gt;OUTPUT&lt;/A&gt; statement to ask for predicted values to be written to a SAS data set. The predicted values for weeks 53, 54, 55, 56, ... are the forecasts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a simple explanation, with code that would have to be modified for your actual application: &lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But really, you should be using a time series model.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 13:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/885997#M350115</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-23T13:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regression on multiple items in different categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886001#M350119</link>
      <description>&lt;P&gt;I like your idea of time series, Can you help with time series code for this data set?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 15:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886001#M350119</guid>
      <dc:creator>Majid2023</dc:creator>
      <dc:date>2023-07-23T15:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Regression on multiple items in different categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886004#M350120</link>
      <description>&lt;P&gt;To tell you the truth, I cannot help with time series models, other than the most simple ones. Probably someone else can help with that.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 15:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886004#M350120</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-23T15:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regression on multiple items in different categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886005#M350121</link>
      <description>&lt;P&gt;Thank you so much for sharing Regression code&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 15:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886005#M350121</guid>
      <dc:creator>Majid2023</dc:creator>
      <dc:date>2023-07-23T15:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regression on multiple items in different categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886006#M350122</link>
      <description>&lt;P&gt;You can also read the first 4 articles under Getting Started at this link &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/etsug/etsug_arima_toc.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/etsug/etsug_arima_toc.htm&lt;/A&gt; which is an example of forecasting sales.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jul 2023 15:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886006#M350122</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-23T15:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regression on multiple items in different categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886063#M350151</link>
      <description>It is called panel data in time series analysis.&lt;BR /&gt;Better post it at Forecasting Forum:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics" target="_blank"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics&lt;/A&gt;&lt;BR /&gt;Check PROC PANEL in SAS/ETS.&lt;BR /&gt;&lt;BR /&gt;It is also called Longitudinal data in Clinic Data Analysis.&lt;BR /&gt;Check PROC MIXED or PROC GLIMMIX in SAS/STAT&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/12/03/longitudinal-data-response-profile-model.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/12/03/longitudinal-data-response-profile-model.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/12/05/longitudinal-data-mixed-model.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/12/05/longitudinal-data-mixed-model.html&lt;/A&gt;</description>
      <pubDate>Mon, 24 Jul 2023 11:34:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886063#M350151</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-24T11:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regression on multiple items in different categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886064#M350152</link>
      <description>&lt;A href="https://documentation.sas.com/doc/en/etsug/15.2/etsug_panel_examples05.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/etsug/15.2/etsug_panel_examples05.htm&lt;/A&gt;</description>
      <pubDate>Mon, 24 Jul 2023 11:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Regression-on-multiple-items-in-different-categories/m-p/886064#M350152</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-24T11:38:49Z</dc:date>
    </item>
  </channel>
</rss>

