<?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: Calculate moving average for By-Groups in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7147#M7141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the Summation function with an If() condition to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a picture of what it would look like in the formula editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3927_JMPScreenSnapz002.png" style="width: 336px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/195iC80417A5AA393AB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3927_JMPScreenSnapz002.png" alt="3927_JMPScreenSnapz002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here's the text version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summation(&lt;/P&gt;&lt;P&gt;&amp;nbsp; i = Row() - 7,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Row() + 7,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If( :DAY&lt;I&gt; == :DAY&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; :DIAMETER&lt;I&gt;,&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;) / Summation( i = Row() - 7, Row() + 7, If( :DAY&lt;I&gt; == :DAY, 1, . ) )&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 20:17:46 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2016-10-18T20:17:46Z</dc:date>
    <item>
      <title>Calculate moving average for By-Groups</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7144#M7138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to calculate a moving average for a data-set containing several rounds of the continuous data. That is, I want a calculated average for every data-point, including the first and last. The average should be 7 steps in either direction, except for either end, where non-existing data beyond the 7 step window should simply ignored. Of course I don't want data form different By-Groups to be included in the same average. I was hoping to use the "Col Mean" function, but I can't figure out how to make the average "move". Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 10:51:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7144#M7138</guid>
      <dc:creator>JesperJohansen</dc:creator>
      <dc:date>2013-07-22T10:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate moving average for By-Groups</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7145#M7139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have ETS licenced?&amp;nbsp; If so, there is functionality within PROC EXPAND to calculate moving averages&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 11:11:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7145#M7139</guid>
      <dc:creator>keith</dc:creator>
      <dc:date>2013-07-22T11:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate moving average for By-Groups</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7146#M7140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do have access to EST, but I have never used it. I was hoping to do it directly in the formula editor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2013 11:33:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7146#M7140</guid>
      <dc:creator>JesperJohansen</dc:creator>
      <dc:date>2013-07-22T11:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate moving average for By-Groups</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7147#M7141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jesper,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the Summation function with an If() condition to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a picture of what it would look like in the formula editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3927_JMPScreenSnapz002.png" style="width: 336px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/195iC80417A5AA393AB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3927_JMPScreenSnapz002.png" alt="3927_JMPScreenSnapz002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here's the text version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summation(&lt;/P&gt;&lt;P&gt;&amp;nbsp; i = Row() - 7,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Row() + 7,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If( :DAY&lt;I&gt; == :DAY&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; :DIAMETER&lt;I&gt;,&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;) / Summation( i = Row() - 7, Row() + 7, If( :DAY&lt;I&gt; == :DAY, 1, . ) )&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 20:17:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7147#M7141</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2016-10-18T20:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate moving average for By-Groups</title>
      <link>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7148#M7142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was exactly what I needed. Great! Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 05:53:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Calculate-moving-average-for-By-Groups/m-p/7148#M7142</guid>
      <dc:creator>JesperJohansen</dc:creator>
      <dc:date>2013-07-23T05:53:11Z</dc:date>
    </item>
  </channel>
</rss>

