<?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: Col Mean without excluded rows in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Col-Mean-without-excluded-rows/m-p/825961#M100668</link>
    <description>&lt;P&gt;Since JMP16? you can add Excluded(Row State()) to Col statistical functions&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1736167939273.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71713i3D4FE522F82D14A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1736167939273.png" alt="jthi_1-1736167939273.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Do note that it will still calculate Mean for excluded rows as a separate "excluded" group.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Clear Row States &amp;lt;&amp;lt; Select Rows(Index(1, 10)) &amp;lt;&amp;lt; Exclude;
dt &amp;lt;&amp;lt; New Column("Col Mean for each Sex", Formula(Col Mean(:height, :sex)));
dt &amp;lt;&amp;lt; New Column("Col Mean for each Sex grouped by Excluded",
	Formula(Col Mean(:height, :sex, Excluded(Row State())))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1736168001487.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71714iE1696A583B94B118/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1736168001487.png" alt="jthi_2-1736168001487.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2025 12:54:43 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-01-06T12:54:43Z</dc:date>
    <item>
      <title>Col Mean without excluded rows</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Mean-without-excluded-rows/m-p/825947#M100666</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Is there a way to add a Col Mean formula so the excluded rows will be excluded from the calculation?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 12:44:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Mean-without-excluded-rows/m-p/825947#M100666</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2025-01-06T12:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Col Mean without excluded rows</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Mean-without-excluded-rows/m-p/825957#M100667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2996"&gt;@tom_abramov&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy new Year 2025 !&lt;/P&gt;
&lt;P&gt;See previous response from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;and &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;on this exact same question :&lt;LI-MESSAGE title="Why is my column mean not matching with one calculated via the distribution platform, after excluding row(s)?" uid="702423" url="https://community.jmp.com/t5/Discussions/Why-is-my-column-mean-not-matching-with-one-calculated-via-the/m-p/702423#U702423" 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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope these solutions will also solve your problem,&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 12:47:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Mean-without-excluded-rows/m-p/825957#M100667</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-01-06T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Col Mean without excluded rows</title>
      <link>https://community.jmp.com/t5/Discussions/Col-Mean-without-excluded-rows/m-p/825961#M100668</link>
      <description>&lt;P&gt;Since JMP16? you can add Excluded(Row State()) to Col statistical functions&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1736167939273.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71713i3D4FE522F82D14A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1736167939273.png" alt="jthi_1-1736167939273.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Do note that it will still calculate Mean for excluded rows as a separate "excluded" group.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Clear Row States &amp;lt;&amp;lt; Select Rows(Index(1, 10)) &amp;lt;&amp;lt; Exclude;
dt &amp;lt;&amp;lt; New Column("Col Mean for each Sex", Formula(Col Mean(:height, :sex)));
dt &amp;lt;&amp;lt; New Column("Col Mean for each Sex grouped by Excluded",
	Formula(Col Mean(:height, :sex, Excluded(Row State())))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1736168001487.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/71714iE1696A583B94B118/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1736168001487.png" alt="jthi_2-1736168001487.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 12:54:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Col-Mean-without-excluded-rows/m-p/825961#M100668</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-06T12:54:43Z</dc:date>
    </item>
  </channel>
</rss>

