<?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: What is the function to calculate the column percentile of a specific number? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/529088#M75257</link>
    <description>&lt;P&gt;Hi, txnelson:&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;I am not a statistician, but wonder if there is way to calculate it for data which is not limited to normal distribution.&lt;/P&gt;&lt;P&gt;What I was really looking for is a function doing the reverse calculation of "Col Quantile (:X, 0.2)--&amp;gt; 3.2", meaning f(:X, 3.2)--&amp;gt; 20%. Or mathematically N rows ( where (:X&amp;lt;0.32) ) / N rows(:X).&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 21:06:38 GMT</pubDate>
    <dc:creator>CurseOfLizard13</dc:creator>
    <dc:date>2022-08-01T21:06:38Z</dc:date>
    <item>
      <title>What is the function to calculate the column percentile of a specific number?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/528892#M75241</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As an example, I have a data table with column "X" with values "1,2,3,....13, 14, 15".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand it is easy to calculate the 20% quantile using function: Col Quantile(:X, 0.2) = 3.2.&lt;/P&gt;&lt;P&gt;Is there a function to calculate the percentile of a number in this column "X", for example 3?&lt;/P&gt;&lt;P&gt;If so, is there a way to calculate it in the "Table Summary" for multiple columns?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:53:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/528892#M75241</guid>
      <dc:creator>CurseOfLizard13</dc:creator>
      <dc:date>2023-06-09T00:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function to calculate the column percentile of a specific number?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/528942#M75245</link>
      <description>&lt;P&gt;Here is the entry from the Scripting Index for the Normal Distribution function which returns the probability for a given value, with a given mu and sigma.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1659372520553.png" style="width: 635px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44445iBB3C06BF15E5A720/image-dimensions/635x560?v=v2" width="635" height="560" role="button" title="txnelson_0-1659372520553.png" alt="txnelson_0-1659372520553.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So if I am understanding your question correctly, you would specify&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;p=normal distribution(3, col mean(:x), col stddev(:x) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Aug 2022 16:51:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/528942#M75245</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-08-01T16:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function to calculate the column percentile of a specific number?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/529088#M75257</link>
      <description>&lt;P&gt;Hi, txnelson:&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;I am not a statistician, but wonder if there is way to calculate it for data which is not limited to normal distribution.&lt;/P&gt;&lt;P&gt;What I was really looking for is a function doing the reverse calculation of "Col Quantile (:X, 0.2)--&amp;gt; 3.2", meaning f(:X, 3.2)--&amp;gt; 20%. Or mathematically N rows ( where (:X&amp;lt;0.32) ) / N rows(:X).&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 21:06:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/529088#M75257</guid>
      <dc:creator>CurseOfLizard13</dc:creator>
      <dc:date>2022-08-01T21:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function to calculate the column percentile of a specific number?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/529101#M75258</link>
      <description>&lt;P&gt;Maybe&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Col Rank(:X) / Col Number(:X)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or maybe you could use CDF()&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 21:25:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/529101#M75258</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-08-01T21:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the function to calculate the column percentile of a specific number?</title>
      <link>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/529132#M75261</link>
      <description>&lt;P&gt;Expanding on&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;idea, here is a function that works.&amp;nbsp; Remember, the value returned is partially made up from a linear interpolation between the adjacent cumulative probabilities.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = 
// Open Data Table: big class.jmp
// → Data Table( "big class" )
Open( "$SAMPLE_DATA/big class.jmp" );

quantile Distribution = Function( {col, value},
	{defaultlocal}, 
	{quant, cumprob} = CDF( Column( col ) &amp;lt;&amp;lt; get values );
	result = Interpolate( value, quant, cumprob );
	Return( result );
);

res = quantile distribution( "height", 53 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Aug 2022 22:26:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/What-is-the-function-to-calculate-the-column-percentile-of-a/m-p/529132#M75261</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-08-01T22:26:55Z</dc:date>
    </item>
  </channel>
</rss>

