<?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: How to find the mode of multiple columns and partial rows? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/294643#M55689</link>
    <description>&lt;P&gt;Here is the formula that I came up with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Row() &amp;gt; 6,
	Mode( Matrix( :height[Index( Row() - 5, Row() )] ) || Matrix( :weight[Index( Row() - 5, Row() )] ) ),
	Mode( Matrix( :height[Index( 1, Row() )] ) || Matrix( :weight[Index( 1, Row() )] ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: The Range() function returns the minimum and maximum values found in the list or matrix&lt;/P&gt;
&lt;P&gt;Note: JMP returns the minimum mode value if there is more than one mode&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mode([77,55,33,77,55])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;returns&lt;/P&gt;
&lt;PRE&gt;55&lt;/PRE&gt;
&lt;P&gt;while&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mode([55,34,67,88,65])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;returns&lt;/P&gt;
&lt;PRE&gt;34&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Aug 2020 11:24:38 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-08-30T11:24:38Z</dc:date>
    <item>
      <title>How to find the mode of multiple columns and partial rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/294621#M55686</link>
      <description>&lt;P&gt;For example, add new columns with "Big Class. JMP ", and find the mode of the data in the same row of the "height"、"weight" columns and the five rows above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-08-30_15-17-37.png" style="width: 584px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26509i8B4FCCA191F3B268/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-08-30_15-17-37.png" alt="2020-08-30_15-17-37.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mode(Range(:weight[Index(Row()-5,Row())], :height[Index(Row()-5,Row())]))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:36:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/294621#M55686</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2023-06-09T23:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the mode of multiple columns and partial rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/294631#M55687</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class="src"&gt;I can't get the right answer by using this formula.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 07:27:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/294631#M55687</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-08-30T07:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the mode of multiple columns and partial rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/294643#M55689</link>
      <description>&lt;P&gt;Here is the formula that I came up with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( Row() &amp;gt; 6,
	Mode( Matrix( :height[Index( Row() - 5, Row() )] ) || Matrix( :weight[Index( Row() - 5, Row() )] ) ),
	Mode( Matrix( :height[Index( 1, Row() )] ) || Matrix( :weight[Index( 1, Row() )] ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: The Range() function returns the minimum and maximum values found in the list or matrix&lt;/P&gt;
&lt;P&gt;Note: JMP returns the minimum mode value if there is more than one mode&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mode([77,55,33,77,55])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;returns&lt;/P&gt;
&lt;PRE&gt;55&lt;/PRE&gt;
&lt;P&gt;while&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;mode([55,34,67,88,65])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;returns&lt;/P&gt;
&lt;PRE&gt;34&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 11:24:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/294643#M55689</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-30T11:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the mode of multiple columns and partial rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/295466#M55698</link>
      <description>&lt;P&gt;Thank Jim!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;The JMP mode formula seems rather lax.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;In Excel, no mode is returned as "#N/A", and JMP is returned as "minimum".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 23:46:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/295466#M55698</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-08-30T23:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the mode of multiple columns and partial rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/295478#M55701</link>
      <description>&lt;P&gt;The minimum is a correct mode.&amp;nbsp; There just happens to be more than one mode.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 23:53:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/295478#M55701</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-30T23:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the mode of multiple columns and partial rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/295481#M55703</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Whether this can be verified&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-08-31_08-14-17.png" style="width: 394px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/26513iFC1FF809F6BBAF79/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-08-31_08-14-17.png" alt="2020-08-31_08-14-17.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 00:14:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/295481#M55703</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-08-31T00:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the mode of multiple columns and partial rows?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/295492#M55705</link>
      <description>&lt;P&gt;It is a simple matter to determine if more than one value was found that determined what the mode is.&amp;nbsp; If you want to set the resulting mode to a missing value when the mode comes from a single value, you can use the below logic&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
mat = [1, 2, 3, 4, 5, 1];
xmode = Mode( mat );
If( N Rows( Loc( mat, xmode ) ) == 1,
	x = .
);
Show( xmode );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Aug 2020 00:47:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-find-the-mode-of-multiple-columns-and-partial-rows/m-p/295492#M55705</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-08-31T00:47:24Z</dc:date>
    </item>
  </channel>
</rss>

