<?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: rolling moving average in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274821#M53307</link>
    <description>&lt;P&gt;If you read the documentation on the Col Moving Average() function, it allows for the setting of what I believe you are referring to as X.&lt;/P&gt;
&lt;P&gt;Could you please provide some sample results.&amp;nbsp; I am still not understanding your request.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 20:33:42 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-06-22T20:33:42Z</dc:date>
    <item>
      <title>rolling moving average</title>
      <link>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274657#M53277</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a new column "moving average" and want this column to do rolling average of temp based on ID. I attached a sample file here. Can you please help with the formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:29:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274657#M53277</guid>
      <dc:creator>Sebnem</dc:creator>
      <dc:date>2023-06-09T23:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: rolling moving average</title>
      <link>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274682#M53282</link>
      <description>&lt;P&gt;Assuming that your definition of "Rolling Average" is a "Moving Average" the formula is&lt;/P&gt;
&lt;PRE&gt;&lt;FONT style="background-color: #ffffff;"&gt;Col Moving Average( :Temp, :ID )&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;Documentation and Examples of the Col Moving Average() are in the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 10:52:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274682#M53282</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-22T10:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: rolling moving average</title>
      <link>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274783#M53301</link>
      <description>&lt;P&gt;Hi Jim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this formula but this does not deliver what I was expecting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First: I want to create column which is the mean of temp by ID&lt;/P&gt;&lt;P&gt;Then, I want to mean of the new column over "X (X is user defined)" number of IDs.&lt;/P&gt;&lt;P&gt;Can you please help with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 17:59:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274783#M53301</guid>
      <dc:creator>Sebnem</dc:creator>
      <dc:date>2020-06-22T17:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: rolling moving average</title>
      <link>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274821#M53307</link>
      <description>&lt;P&gt;If you read the documentation on the Col Moving Average() function, it allows for the setting of what I believe you are referring to as X.&lt;/P&gt;
&lt;P&gt;Could you please provide some sample results.&amp;nbsp; I am still not understanding your request.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 20:33:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274821#M53307</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-22T20:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: rolling moving average</title>
      <link>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274829#M53309</link>
      <description>&lt;P&gt;I looked into big class sample data set and created a column:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Moving Average( :height, 1, 5, 0, :sex )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does 5 do in the calculation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to manually calculate the moving average until the row#9---How was 58.833333333 calculated? I am not able to generate the same number manually&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 13:21:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274829#M53309</guid>
      <dc:creator>Sebnem</dc:creator>
      <dc:date>2020-06-23T13:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: rolling moving average</title>
      <link>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274847#M53315</link>
      <description>&lt;P&gt;The 5 in the function call is specifying the number of rows before the current row to include in the moving average.&amp;nbsp; You can actually specify the function in the following way.....which is really the way it should be called, to make the script more readable&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Moving Average( :height, weighting=1, Before=5, after=0, :sex )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your manual calculation you have to remember that the moving average is being tracked for both Males and Females.&amp;nbsp; And the average does not restart every time the data changes from F to M or M to F.&amp;nbsp; It is treating the calculations as if there are 2 separate columns.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 02:08:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/274847#M53315</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-23T02:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: rolling moving average</title>
      <link>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/774674#M95656</link>
      <description>&lt;P&gt;I guess sometimes the data needs to be sorted (e.g. time-dependent column).&lt;BR /&gt;Or is there an argument in the function that is referring to such cases?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 20:57:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/774674#M95656</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2024-07-22T20:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: rolling moving average</title>
      <link>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/774675#M95657</link>
      <description>&lt;P&gt;Col Moving Average() will be calculated separately for each level of the By() columns, such as the Sex column in my example, however, the moving average will be calculated in row order.&amp;nbsp; So the data may have to be sorted to get the desired results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 21:08:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/rolling-moving-average/m-p/774675#M95657</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-07-22T21:08:57Z</dc:date>
    </item>
  </channel>
</rss>

