<?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: Predicting Sales Values Using PROC ARIMA in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-Sales-Values-Using-PROC-ARIMA/m-p/932567#M4834</link>
    <description>You'd better post it at right forum:&lt;BR /&gt;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;</description>
    <pubDate>Sun, 16 Jun 2024 02:22:44 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-06-16T02:22:44Z</dc:date>
    <item>
      <title>Predicting Sales Values Using PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-Sales-Values-Using-PROC-ARIMA/m-p/932527#M4832</link>
      <description>&lt;P&gt;Hey SAS Community,&lt;/P&gt;&lt;P&gt;I am new to SAS and would appreciate any advice on this topic.&lt;/P&gt;&lt;P&gt;For a university project, I need to calculate the expected sales value for the upcoming months after my dataset runs out. The dataset includes &lt;CODE&gt;Total_amt&lt;/CODE&gt;, which contains the transaction values, and &lt;CODE&gt;Tran_date&lt;/CODE&gt;, which specifies the dates of the transactions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data TransactionsWithSasDate;
set Transactions;
Tran_date = mdy(Month, Day, Year);
format Tran_date date9.;
run;

proc sql;
create table MonthlySales as
select 
intnx('Month', Tran_date, 0, 'Beginning') as Month format=date9., 
sum(Total_amt) as MonthlySalesValue
from TransactionsWithSasDate
group by calculated Month;
quit;

proc arima data=MonthlySales;
identify var=MonthlySalesValue(12);
estimate p=1 q=1;
forecast lead=12 id=Month interval=Month out=ForecastedSalesValue;
run;

proc sgplot data=ForecastedSalesValue;
series x=Month y=MonthlySalesValue / lineattrs=(color=blue) legendlabel="Actual";
series x=Month y=Forecast / lineattrs=(color=red) legendlabel="Forecast";
xaxis label='Month';
yaxis label='Monthly sales value';
title 'Monthly Sales Trend and Forecast';
run;&lt;/PRE&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="Bildschirmfoto 2024-06-15 um 12.48.02.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97487iE189B5CC4D22EB14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2024-06-15 um 12.48.02.png" alt="Bildschirmfoto 2024-06-15 um 12.48.02.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I double-checked my code, but I am not sure if it is correct because the output graph looks a little off.&lt;/P&gt;&lt;P&gt;Any advice on this topic would be highly appreciated!&lt;/P&gt;&lt;P&gt;Greetings, Johannes&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 10:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-Sales-Values-Using-PROC-ARIMA/m-p/932527#M4832</guid>
      <dc:creator>r0sner</dc:creator>
      <dc:date>2024-06-15T10:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting Sales Values Using PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-Sales-Values-Using-PROC-ARIMA/m-p/932556#M4833</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/466649"&gt;@r0sner&lt;/a&gt;&amp;nbsp;wrote:&lt;SPAN&gt; &lt;/SPAN&gt;
&lt;P&gt;I double-checked my code, but I am not sure if it is correct because the output graph looks a little off.&lt;/P&gt;
&lt;P&gt;Any advice on this topic would be highly appreciated!&lt;/P&gt;
&lt;P&gt;Greetings, Johannes&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your first and last month (of actual sales -- blue line) make a good model and a good forecast almost impossible.&lt;/P&gt;
&lt;P&gt;The last month is presumably incomplete (half-month sales?)&lt;/P&gt;
&lt;P&gt;and the first month is either incomplete or still part of ramp-up during a product launch (new product introduction).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 22:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-Sales-Values-Using-PROC-ARIMA/m-p/932556#M4833</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-06-15T22:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting Sales Values Using PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-Sales-Values-Using-PROC-ARIMA/m-p/932567#M4834</link>
      <description>You'd better post it at right forum:&lt;BR /&gt;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;</description>
      <pubDate>Sun, 16 Jun 2024 02:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-Sales-Values-Using-PROC-ARIMA/m-p/932567#M4834</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-06-16T02:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting Sales Values Using PROC ARIMA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-Sales-Values-Using-PROC-ARIMA/m-p/932570#M4835</link>
      <description>&lt;P&gt;I moved this topic thread to "SAS Forecasting and Econometrics" - board.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 12:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-Sales-Values-Using-PROC-ARIMA/m-p/932570#M4835</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-06-16T12:59:47Z</dc:date>
    </item>
  </channel>
</rss>

