<?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: Calculating Sum Across Rolling Years in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/371024#M24201</link>
    <description>&lt;P&gt;Do you have a license for SAS/ETS?&lt;/P&gt;
&lt;P&gt;If so, look at PROC EXPAND, the third example in the documentation shows how to calculate rolling stats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, there are many ways...a temporary array is a common method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example for a moving window of 4 and min/max. You can replace that with SUM/MEAN or whatever rolling stats you're interested in.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2017 18:36:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-06-27T18:36:24Z</dc:date>
    <item>
      <title>Calculating Sum Across Rolling Years</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/371008#M24195</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to calculate a number of events (sum) within rolling 12 month periods. The date format is 'DDMMMYYYY' &amp;nbsp;with a 2 year (24 month) range, and I need to report this at person level. &amp;nbsp;I haven't developed any code yet. &amp;nbsp;I am using SAS EG and would like some guidance at your earliest convenience please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Thanks,&lt;/P&gt;&lt;P&gt;Jordana&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 17:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/371008#M24195</guid>
      <dc:creator>Jordana_Anthem</dc:creator>
      <dc:date>2017-06-27T17:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Sum Across Rolling Years</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/371024#M24201</link>
      <description>&lt;P&gt;Do you have a license for SAS/ETS?&lt;/P&gt;
&lt;P&gt;If so, look at PROC EXPAND, the third example in the documentation shows how to calculate rolling stats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, there are many ways...a temporary array is a common method:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example for a moving window of 4 and min/max. You can replace that with SUM/MEAN or whatever rolling stats you're interested in.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 18:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/371024#M24201</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-27T18:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Sum Across Rolling Years</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/371026#M24202</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response. &amp;nbsp;I only have access to SAS EG. &amp;nbsp;Is there an example that was attached with your reply, if so, it didn't come across. &amp;nbsp;I am ready to try a solution any time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind thanks,&lt;/P&gt;&lt;P&gt;Jordana&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 18:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/371026#M24202</guid>
      <dc:creator>Jordana_Anthem</dc:creator>
      <dc:date>2017-06-27T18:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Sum Across Rolling Years</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/371028#M24203</link>
      <description>&lt;P&gt;Sorry, here it is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/27e23c015eae7953eff2" target="_blank"&gt;https://gist.github.com/statgeek/27e23c015eae7953eff2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ETS is a module, you may still have it in EG.&lt;/P&gt;
&lt;P&gt;It's under Tasks&amp;gt;Time Series&amp;gt;Prepare Time Series Data&lt;/P&gt;
&lt;P&gt;On the left hand menu there's something called transformations that will allow you to create rolling/moving stats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 18:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/371028#M24203</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-27T18:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Sum Across Rolling Years</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/374494#M24381</link>
      <description>&lt;P&gt;Thanks for your assistance.&amp;nbsp; I was able to find another solution that worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jordana&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 13:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Sum-Across-Rolling-Years/m-p/374494#M24381</guid>
      <dc:creator>Jordana_Anthem</dc:creator>
      <dc:date>2017-07-10T13:43:18Z</dc:date>
    </item>
  </channel>
</rss>

