<?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: proc expand question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-expand-question/m-p/692470#M210976</link>
    <description>Have you seen the blog on this: &lt;A href="https://blogs.sas.com/content/iml/2016/01/27/moving-average-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/01/27/moving-average-in-sas.html&lt;/A&gt;</description>
    <pubDate>Mon, 19 Oct 2020 10:24:23 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2020-10-19T10:24:23Z</dc:date>
    <item>
      <title>proc expand question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-expand-question/m-p/691601#M210520</link>
      <description>&lt;PRE&gt;proc expand data=data out=MoveAv method=none  ;
   id MONTH1;
    convert number = MA   / transout=(movave 5);
   convert number = WMA  / transout=(movave(1 2 3 4 5)); 
   convert number = EWMA / transout=(ewma 0.3);
run;
proc sgplot data=MoveAv cycleattrs;
   series x=month1 y=MA   / name='MA'   legendlabel="MA(5)";
   series x=month1 y=WMA  / name='WMA'  legendlabel="WMA(1,2,3,4,5)";
   series x=month1 y=EWMA / name='EWMA' legendlabel="EWMA(0.3)";
   scatter x=month1 y=number;
   keylegend 'MA' 'WMA' 'EWMA';
   xaxis display=(nolabel) grid;
   yaxis label="Closing Price" grid;
run;&lt;/PRE&gt;&lt;P&gt;This is my code. My code contains the date&amp;nbsp;variable&lt;STRONG&gt;:"month1"&lt;/STRONG&gt;&amp;nbsp;(every month numbers from jan2019 to may2020)&amp;nbsp;and&amp;nbsp;customer number&amp;nbsp;variable &lt;STRONG&gt;"number".&amp;nbsp;&lt;/STRONG&gt;I want to forecast the future 6 months' data&amp;nbsp;using moving average method&amp;nbsp;but proc expand only give me the moving average data from jan2019 to may2020. I don't want to using proc forecast. Only want to use moving average method. Are there any option in the proc expand can provide me the future moving average data?&lt;/P&gt;&lt;P&gt;thank you in advance&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-expand-question/m-p/691601#M210520</guid>
      <dc:creator>hardtonamed</dc:creator>
      <dc:date>2020-10-14T17:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc expand question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-expand-question/m-p/692470#M210976</link>
      <description>Have you seen the blog on this: &lt;A href="https://blogs.sas.com/content/iml/2016/01/27/moving-average-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/01/27/moving-average-in-sas.html&lt;/A&gt;</description>
      <pubDate>Mon, 19 Oct 2020 10:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-expand-question/m-p/692470#M210976</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2020-10-19T10:24:23Z</dc:date>
    </item>
  </channel>
</rss>

