<?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: Statistical functions (Col Mean for example) possibly bugged on first row of data table when using &amp;lt;&amp;lt; Set Each Value to replace values in column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613978#M81407</link>
    <description>&lt;P&gt;After adding some additional formatting to the &lt;EM&gt;&lt;STRONG&gt;value&lt;/STRONG&gt; &lt;/EM&gt;printout, Col ... aggregation switches to the very slow mode which is already known from here:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-do-I-use-the-Col-Maximum-Formula-with-a-quot-where-quot/m-p/578576/highlight/true#M78599" target="_blank" rel="noopener"&gt;How-do-I-use-the-Col-Maximum-Formula-with-a-quot-where-quot/m-p/578576/highlight/true#M78599&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;new column("Vals", set each value(random uniform()));
new column("groupBy", set each value(random integer(4)));
newCol=New Column("new");
newCol &amp;lt;&amp;lt; Set Each Value(Col Mean(Print(row());:Vals, write("\!n groupby row # ",row()," ",newCol[row()],"\!n");:groupBy));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems that for each single row&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;all&lt;/STRONG&gt; &lt;STRONG&gt;rows&lt;/STRONG&gt; get evaluated : first the &lt;STRONG&gt;value&lt;/STRONG&gt; and then the &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; argument&lt;/P&gt;&lt;P&gt;- then the &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; argument of the specific row is evaluated (again)&lt;/P&gt;&lt;P&gt;and then the matching values are collected and aggregated.&lt;/P&gt;&lt;P&gt;Then it starts with the next row:&lt;/P&gt;&lt;P&gt;- all rows get evaluated (again): first the &lt;STRONG&gt;value&lt;/STRONG&gt; and then the &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; argument&lt;/P&gt;&lt;P&gt;- then the &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; argument of the next row is evaluated (again)&lt;/P&gt;&lt;P&gt;and so forth ....&lt;/P&gt;&lt;P&gt;This explains why the execution scales quadratically with the length of the rows, [compare&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/How-do-I-use-the-Col-Maximum-Formula-with-a-quot-where-quot/m-p/578576/highlight/true#M78599" target="_blank" rel="noopener"&gt;How-do-I-use-the-Col-Maximum-Formula ....&lt;/A&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Funny: Additional evaluations are different from the moon - not there if you don't watch :)&lt;/img&gt;&lt;BR /&gt;&lt;/SPAN&gt;Perhaps somebody from Jmp could give a more detailed view ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;full printout of the slow version:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 .
-value, row # 2
groupby row # 2 .
-value, row # 3
groupby row # 3 .
-value, row # 4
groupby row # 4 .
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;groupby row # 1&lt;/FONT&gt; .&lt;/STRONG&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 .
-value, row # 3
groupby row # 3 .
-value, row # 4
groupby row # 4 .
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 2 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 .
-value, row # 4
groupby row # 4 .
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 3 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 .
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 4 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 2.5
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 5 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 2.5
-value, row # 5
groupby row # 5 2.5
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 6 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 2.5
-value, row # 5
groupby row # 5 2.5
-value, row # 6
groupby row # 6 2.5
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 7 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 2.5
-value, row # 5
groupby row # 5 2.5
-value, row # 6
groupby row # 6 2.5
-value, row # 7
groupby row # 7 2.5
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 8 .&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 21:14:33 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-12-16T21:14:33Z</dc:date>
    <item>
      <title>Statistical functions (Col Mean for example) possibly bugged on first row of data table when using &lt;&lt; Set Each Value to replace values in column</title>
      <link>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613593#M81363</link>
      <description>&lt;P&gt;While trying to get my solution working for &lt;LI-MESSAGE title="Is there a faster way to loop?" uid="612450" url="https://community.jmp.com/t5/Discussions/Is-there-a-faster-way-to-loop/m-p/612450#U612450" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; I came across an issue where first row of my data wasn't looking correct (in fact the issue was for whole first group).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled 5",
	Add Rows(8),
	Compress File When Saved(1),
	New Column("Vals", Numeric, "Continuous", Format("Best", 12), Set Values([1, 2, 3, 4, 1, 2, 3, 4])),
	New Column("Column 1", Numeric, "Continuous", Format("Best", 12), Set Values([1, 2, 3, 4, 1, 2, 3, 4])),
	New Column("Column 1 1", Numeric, "Continuous", Format("Best", 12), Set Values([1, 2, 3, 4, 1, 2, 3, 4])),
	New Column("Column 2", Numeric, "Continuous", Format("Best", 12), Set Values([1, 2, 3, 4, 1, 2, 3, 4])),
	New Column("A", Character, "Nominal", Set Values({"A", "A", "A", "A", "B", "B", "B", "B"})),
	New Column("B", Character, "Nominal", Formula(Col Mean(:Vals, :A)))
	
);

dt &amp;lt;&amp;lt; New Column("Column 3", Numeric, Continuous, &amp;lt;&amp;lt;Set Each Value(Col Mean(:Column 1, :A)));
Column(dt, "Column 1") &amp;lt;&amp;lt; Set Each Value(Col Mean(:Column 1, :A));

// workaround
dt &amp;lt;&amp;lt; Add Row(1, At Start);
Column(dt, "Column 1 1") &amp;lt;&amp;lt; Set Each Value(Col Mean(:Column 1 1, :A));
dt &amp;lt;&amp;lt; Delete Rows(1);

Show(Col Mean(:Column 2));
Show(Mean(dt[0, "Column 2"]), Mean(dt[[2 3 4], "Column 2"]));
Show(:Column 1 &amp;lt;&amp;lt; get values);
Show(:Column 3 &amp;lt;&amp;lt; get values);
Show(Mean([1 2 3 4]));
Show(Mean([2.5 2 3 4]));

Show(Mean([2.5 2.875 2.875 2.875]));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1678901605470.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51122iF900862836EE33DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1678901605470.png" alt="jthi_1-1678901605470.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To me it looks like Col Mean is being calculated to the first row and then mean for rest of the group &lt;STRONG&gt;one&lt;/STRONG&gt; is calculated using this already replaced value. There is a workaround where you can add empty row as first in data table -&amp;gt; use &amp;lt;&amp;lt; set each value -&amp;gt; remove that first row.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have already opened a ticket regarding this issue (TS-00036082) and JMP support has submitted bug report to development team, but I wanted to make it more visible. I might have to check some of my older script that there aren't any places where I use &amp;lt;&amp;lt; Set Each Value() to replace existing values (usually I use it during column creation) when using statistical col functions.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:27:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613593#M81363</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-06-08T16:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical functions (Col Mean for example) possibly bugged on first row of data table when using &lt;&lt; Set Each Value to replace values in column</title>
      <link>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613753#M81382</link>
      <description>&lt;P&gt;This needs to go to JMP Tech Support&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 18:39:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613753#M81382</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-03-17T18:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical functions (Col Mean for example) possibly bugged on first row of data table when using &lt;&lt; Set Each Value to replace values in column</title>
      <link>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613887#M81398</link>
      <description>&lt;P&gt;I am a bit anxious when using the same column at the same time as an input and output of a calculation.&lt;BR /&gt;Extreme case: If &lt;STRONG&gt;Col ...&lt;/STRONG&gt; Aggregation just acted row by row like Lag(), the output would be like a&amp;nbsp;caterpillar moving along the rows, row by row changing the aggregation output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Concerning speed, it's cool that &lt;STRONG&gt;Col&lt;/STRONG&gt; ... aggregation does it much better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Concerning prevention of the issue: clever idea to add a spare&amp;nbsp; temporary row. Alternatively, one could use a temporary column to store the values, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Concerning: &lt;EM&gt;Why?&lt;BR /&gt;[edited after the input of the slow version]&lt;BR /&gt;hm ...&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Adding a print function to the GroupBy argument helps to see what's going on ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Indeed, the &lt;STRONG&gt;Value&lt;/STRONG&gt; and &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; functions are evaluated twice.&lt;BR /&gt;First to get values to compare with the GroupBy argument of row 1, then again after writing the result to row 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;newCol=New Column("new");
newCol &amp;lt;&amp;lt; Set Each Value(Col Mean(Print(row());:Vals,&lt;BR /&gt; write("\!n groupby row # ",row()," ",newCol[row()],"\!n");:A));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;a line with just a number: which &lt;STRONG&gt;value&lt;/STRONG&gt; function was evaluated ?&lt;BR /&gt;a line with&lt;EM&gt; groupby row # ...&lt;/EM&gt; : which &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; function was evaluated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;1
groupby row # 1 .
2
groupby row # 2 .
3
groupby row # 3 .
4
groupby row # 4 .
5
groupby row # 5 .
6
groupby row # 6 .
7
groupby row # 7 .
8
groupby row # 8 .&lt;/FONT&gt;

&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 1 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;1
groupby row # 1 2.5
2
groupby row # 2 .
3
groupby row # 3 .
4
groupby row # 4 .
5
groupby row # 5 .
6
groupby row # 6 .
7
groupby row # 7 .
8
groupby row # 8 .&lt;/FONT&gt;

&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 2 .

groupby row # 3 .

groupby row # 4 .

groupby row # 5 .

groupby row # 6 .

groupby row # 7 .

groupby row # 8 .&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 06:49:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613887#M81398</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-03-19T06:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical functions (Col Mean for example) possibly bugged on first row of data table when using &lt;&lt; Set Each Value to replace values in column</title>
      <link>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613978#M81407</link>
      <description>&lt;P&gt;After adding some additional formatting to the &lt;EM&gt;&lt;STRONG&gt;value&lt;/STRONG&gt; &lt;/EM&gt;printout, Col ... aggregation switches to the very slow mode which is already known from here:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-do-I-use-the-Col-Maximum-Formula-with-a-quot-where-quot/m-p/578576/highlight/true#M78599" target="_blank" rel="noopener"&gt;How-do-I-use-the-Col-Maximum-Formula-with-a-quot-where-quot/m-p/578576/highlight/true#M78599&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;new column("Vals", set each value(random uniform()));
new column("groupBy", set each value(random integer(4)));
newCol=New Column("new");
newCol &amp;lt;&amp;lt; Set Each Value(Col Mean(Print(row());:Vals, write("\!n groupby row # ",row()," ",newCol[row()],"\!n");:groupBy));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems that for each single row&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;all&lt;/STRONG&gt; &lt;STRONG&gt;rows&lt;/STRONG&gt; get evaluated : first the &lt;STRONG&gt;value&lt;/STRONG&gt; and then the &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; argument&lt;/P&gt;&lt;P&gt;- then the &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; argument of the specific row is evaluated (again)&lt;/P&gt;&lt;P&gt;and then the matching values are collected and aggregated.&lt;/P&gt;&lt;P&gt;Then it starts with the next row:&lt;/P&gt;&lt;P&gt;- all rows get evaluated (again): first the &lt;STRONG&gt;value&lt;/STRONG&gt; and then the &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; argument&lt;/P&gt;&lt;P&gt;- then the &lt;STRONG&gt;GroupBy&lt;/STRONG&gt; argument of the next row is evaluated (again)&lt;/P&gt;&lt;P&gt;and so forth ....&lt;/P&gt;&lt;P&gt;This explains why the execution scales quadratically with the length of the rows, [compare&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/How-do-I-use-the-Col-Maximum-Formula-with-a-quot-where-quot/m-p/578576/highlight/true#M78599" target="_blank" rel="noopener"&gt;How-do-I-use-the-Col-Maximum-Formula ....&lt;/A&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Funny: Additional evaluations are different from the moon - not there if you don't watch :)&lt;/img&gt;&lt;BR /&gt;&lt;/SPAN&gt;Perhaps somebody from Jmp could give a more detailed view ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;full printout of the slow version:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 .
-value, row # 2
groupby row # 2 .
-value, row # 3
groupby row # 3 .
-value, row # 4
groupby row # 4 .
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;groupby row # 1&lt;/FONT&gt; .&lt;/STRONG&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 .
-value, row # 3
groupby row # 3 .
-value, row # 4
groupby row # 4 .
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 2 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 .
-value, row # 4
groupby row # 4 .
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 3 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 .
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 4 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 2.5
-value, row # 5
groupby row # 5 .
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 5 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 2.5
-value, row # 5
groupby row # 5 2.5
-value, row # 6
groupby row # 6 .
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 6 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 2.5
-value, row # 5
groupby row # 5 2.5
-value, row # 6
groupby row # 6 2.5
-value, row # 7
groupby row # 7 .
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 7 .&lt;/STRONG&gt;&lt;/FONT&gt;
&lt;FONT color="#FF0000"&gt;-value, row # 1
groupby row # 1 2.5
-value, row # 2
groupby row # 2 2.5
-value, row # 3
groupby row # 3 2.5
-value, row # 4
groupby row # 4 2.5
-value, row # 5
groupby row # 5 2.5
-value, row # 6
groupby row # 6 2.5
-value, row # 7
groupby row # 7 2.5
-value, row # 8
groupby row # 8 .&lt;/FONT&gt;
&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;groupby row # 8 .&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 21:14:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613978#M81407</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-12-16T21:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical functions (Col Mean for example) possibly bugged on first row of data table when using &lt;&lt; Set Each Value to replace values in column</title>
      <link>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613983#M81408</link>
      <description>&lt;P&gt;It has (TS-00036082) and support forwarded it to JMP development. Purpose of this post was just to make this a bit more visible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: As I accepted this as a solution, I will add one possible workaround which seemed to work: add extra row to your datatable as first row,&amp;nbsp; use &amp;lt;&amp;lt; set each value to update values and then remove that extra empty row&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// workaround
dt &amp;lt;&amp;lt; Add Row(1, At Start);
Column(dt, "Column 1 1") &amp;lt;&amp;lt; Set Each Value(Col Mean(:Column 1 1, :A));
dt &amp;lt;&amp;lt; Delete Rows(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The bug was present for me for JMP16.2 and JMP17.0&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 09:12:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/613983#M81408</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-03-19T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical functions (Col Mean for example) possibly bugged on first row of data table when using &lt;&lt; Set Each Value to replace values in column</title>
      <link>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/823827#M100311</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;After adding some additional formatting to the &lt;EM&gt;&lt;STRONG&gt;value&lt;/STRONG&gt; &lt;/EM&gt;printout, Col ... aggregation switches to the very slow mode which is already known from here:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-do-I-use-the-Col-Maximum-Formula-with-a-quot-where-quot/m-p/578576/highlight/true#M78599" target="_blank" rel="noopener"&gt;How-do-I-use-the-Col-Maximum-Formula-with-a-quot-where-quot/m-p/578576/highlight/true#M78599&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just checked the behavior with Jmp 17.2 and later versions (&amp;lt;=18.1.1). The issue is gone:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Clear Select &amp;lt;&amp;lt; Select Rows( Index( 5, 40 ) ) &amp;lt;&amp;lt;Delete Rows;
newCol=New Column("new");
newCol &amp;lt;&amp;lt; Set Each Value(Col Mean(Print(row());:height, write("\!n groupby row # ",row()," ",newCol[row()],"\!n");:age));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;gives:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1734384257364.png" style="width: 174px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71281i524773A5E5A75986/image-dimensions/174x408?v=v2" width="174" height="408" role="button" title="hogi_0-1734384257364.png" alt="hogi_0-1734384257364.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, the value and GroupBy values are calculated for every row - then the GroupBy values are calculated again for every row.&lt;BR /&gt;That's it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 21:28:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Statistical-functions-Col-Mean-for-example-possibly-bugged-on/m-p/823827#M100311</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-12-16T21:28:13Z</dc:date>
    </item>
  </channel>
</rss>

