<?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: Finding 3 largest values out of a set in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Finding-3-largest-values-out-of-a-set/m-p/692804#M87835</link>
    <description>&lt;P&gt;Works perfectly, exactly what I needed.&amp;nbsp; Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;!&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2023 05:15:33 GMT</pubDate>
    <dc:creator>BHarris</dc:creator>
    <dc:date>2023-11-01T05:15:33Z</dc:date>
    <item>
      <title>Finding 3 largest values out of a set</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-3-largest-values-out-of-a-set/m-p/692330#M87803</link>
      <description>&lt;P&gt;I need to identify the 3 largest values out of a set of data grouping by certain columns, e.g. with Big Class, suppose I want to identify the 3 tallest students at each age for each sex.&amp;nbsp; I don't think there are any ties/ambiguity in that set, but in my set there are, e.g. if the heights for a given age/sex combination were (64, 63, 61, 61, 61, 61), it doesn't matter which of the 61s is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a formula I could use in a column that would return 1 for these identified students and 0 for the rest?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imagine there's a way to do it with .jsl loops, but I'm hoping there's a formula that will do this.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 05:42:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-3-largest-values-out-of-a-set/m-p/692330#M87803</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2023-10-31T05:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Finding 3 largest values out of a set</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-3-largest-values-out-of-a-set/m-p/692343#M87804</link>
      <description>&lt;P&gt;You can use formula for this. Sometimes just Col Rank() is enough but sometimes you should combine it with Col Number(). After that use simple comparison to get 1 or 0 value&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;1 + Col Number(:height, :age, :sex) - Col Rank(:height, :age, :sex) &amp;lt; 4&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2023 05:59:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-3-largest-values-out-of-a-set/m-p/692343#M87804</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-31T05:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Finding 3 largest values out of a set</title>
      <link>https://community.jmp.com/t5/Discussions/Finding-3-largest-values-out-of-a-set/m-p/692804#M87835</link>
      <description>&lt;P&gt;Works perfectly, exactly what I needed.&amp;nbsp; Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 05:15:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Finding-3-largest-values-out-of-a-set/m-p/692804#M87835</guid>
      <dc:creator>BHarris</dc:creator>
      <dc:date>2023-11-01T05:15:33Z</dc:date>
    </item>
  </channel>
</rss>

