<?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: For a novice JMP 14 user, what is the easiest way to compute a moving average on a column of data? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/For-a-novice-JMP-14-user-what-is-the-easiest-way-to-compute-a/m-p/447583#M69438</link>
    <description>&lt;P&gt;First, welcome to the community. &amp;nbsp;This is perhaps not what you are looking for, but if your data is in time order and in one column, you can do this: &lt;STRONG&gt;Analyze&amp;gt;Quality and Process&amp;gt;Control Charts&amp;gt;IR&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;(Not exactly sure if this is the sequence as I'm on V16, but I think it is). Then enter the name of the column with the data in the Process window, select OK and you will get an individual chart of the data and a moving range chart. &amp;nbsp;The MR chart is quite useful as you can detect unusual data points (e.g., special cause variation, Deming) easily. I always recommend looking at the data with various plots before using any summary statistics.&lt;/P&gt;
&lt;P&gt;I know others will have an easier process to get what you want.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 23:42:14 GMT</pubDate>
    <dc:creator>statman</dc:creator>
    <dc:date>2021-12-21T23:42:14Z</dc:date>
    <item>
      <title>For a novice JMP 14 user, what is the easiest way to compute a moving average on a column of data?</title>
      <link>https://community.jmp.com/t5/Discussions/For-a-novice-JMP-14-user-what-is-the-easiest-way-to-compute-a/m-p/447549#M69436</link>
      <description>&lt;P&gt;I have seen suggestions for using a COL(&amp;nbsp; ) [with arguments I do not comprehend] and another by right clicking on the column heading, then new formula column, then row, and then moving average. However, after a number of trials through the Weighting, items before, and items after boxes, I never get the results I want. Surely JMP has something as straight forward as Excel provides. Suggestions with very plain instructions would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:48:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-a-novice-JMP-14-user-what-is-the-easiest-way-to-compute-a/m-p/447549#M69436</guid>
      <dc:creator>TN_vetnew-JMP</dc:creator>
      <dc:date>2023-06-10T20:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: For a novice JMP 14 user, what is the easiest way to compute a moving average on a column of data?</title>
      <link>https://community.jmp.com/t5/Discussions/For-a-novice-JMP-14-user-what-is-the-easiest-way-to-compute-a/m-p/447583#M69438</link>
      <description>&lt;P&gt;First, welcome to the community. &amp;nbsp;This is perhaps not what you are looking for, but if your data is in time order and in one column, you can do this: &lt;STRONG&gt;Analyze&amp;gt;Quality and Process&amp;gt;Control Charts&amp;gt;IR&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;(Not exactly sure if this is the sequence as I'm on V16, but I think it is). Then enter the name of the column with the data in the Process window, select OK and you will get an individual chart of the data and a moving range chart. &amp;nbsp;The MR chart is quite useful as you can detect unusual data points (e.g., special cause variation, Deming) easily. I always recommend looking at the data with various plots before using any summary statistics.&lt;/P&gt;
&lt;P&gt;I know others will have an easier process to get what you want.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 23:42:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-a-novice-JMP-14-user-what-is-the-easiest-way-to-compute-a/m-p/447583#M69438</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2021-12-21T23:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: For a novice JMP 14 user, what is the easiest way to compute a moving average on a column of data?</title>
      <link>https://community.jmp.com/t5/Discussions/For-a-novice-JMP-14-user-what-is-the-easiest-way-to-compute-a/m-p/447760#M69454</link>
      <description>&lt;P&gt;The function you want to use, is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Moving Average()&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The example from the Scripting Index&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1640181931394.png" style="width: 678px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38634i9A480512558791E9/image-dimensions/678x385?v=v2" width="678" height="385" role="button" title="txnelson_0-1640181931394.png" alt="txnelson_0-1640181931394.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
Row() = 40;
Col Moving Average( :height, 1, 5, 0, :sex );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Calculates the Moving Average for column height(:height), weighting each value in the calculation as the full value (1), include the previous 5 rows of data (5), do not include any rows after the current row (0), and do this separately for Females and Males (:sex).;&lt;/P&gt;
&lt;P&gt;The JSL also indicates to do this just for row 40, (Row() = 40;)&lt;/P&gt;
&lt;P&gt;If you want to create a new column that contains the moving average for each row you would simply use the Col Moving Average() function in a formula for the new column.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column("Moving Average",
formula(
     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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 14:14:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-a-novice-JMP-14-user-what-is-the-easiest-way-to-compute-a/m-p/447760#M69454</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-12-22T14:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: For a novice JMP 14 user, what is the easiest way to compute a moving average on a column of data?</title>
      <link>https://community.jmp.com/t5/Discussions/For-a-novice-JMP-14-user-what-is-the-easiest-way-to-compute-a/m-p/447761#M69455</link>
      <description>&lt;P&gt;You want the &lt;STRONG&gt;col moving average&lt;/STRONG&gt; function in a column formula.&amp;nbsp; Here's an example for a 5-row moving average on the "# defects" column:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\Quality Control\Braces.jmp");

dt &amp;lt;&amp;lt; New Column( "Defect MA", Numeric, "Continuous", Format( "Best", 12 ),
		Formula( Col Moving Average( :name("# defects"), weighting = 1, before = 5 ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Try running this code and you'll see how it works.&lt;/P&gt;
&lt;P&gt;For your table, click on &lt;STRONG&gt;Cols &amp;gt; New columns...&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Give the new column an appropriate name, and select &lt;STRONG&gt;Column properties &amp;gt; Formula&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Double-click on the blue box labeled no formula, then click the little box in the upper right to maximize the editor.&lt;/P&gt;
&lt;P&gt;Paste this formula in:&amp;nbsp;&lt;CODE class=" language-jsl"&gt;Col Moving Average( :name("# defects"), weighting = 1, before = 5 )&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Substitute the column to be averaged for # defects, and set the &lt;STRONG&gt;before&lt;/STRONG&gt; parameter to how many rows you want to average.&lt;/P&gt;
&lt;P&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt; and &lt;STRONG&gt;OK&lt;/STRONG&gt; and you're all set.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 14:19:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-a-novice-JMP-14-user-what-is-the-easiest-way-to-compute-a/m-p/447761#M69455</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2021-12-22T14:19:19Z</dc:date>
    </item>
  </channel>
</rss>

