<?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 use Variables for Custom Quantiles in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-Variables-for-Custom-Quantiles/m-p/354434#M60429</link>
    <description>&lt;P&gt;Jim &amp;amp; all,&lt;/P&gt;&lt;P&gt;This finally works (maybe not the most elegant syntax)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Percent1 = 95;&lt;BR /&gt;Percent2 = 99;&lt;BR /&gt;percentMatrix = &lt;FONT color="#008000"&gt;Matrix( {{ Percent1 /100 }, { Percent2 /100 }} )&lt;/FONT&gt;;&lt;BR /&gt;percentMatrix = [&lt;FONT color="#008000"&gt;0.95, 0.99&lt;/FONT&gt;];&lt;BR /&gt;...&lt;BR /&gt; Custom Quantiles( ( Percent1 /100 ), percentMatrix ),&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;instead of:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;percentMatrix = &lt;FONT color="#FF6600"&gt;Matrix( Percent1 /100 ) || Matrix( Percent2 /100 )&lt;/FONT&gt;;&lt;BR /&gt;percentMatrix = [&lt;FONT color="#008000"&gt;0.95&lt;/FONT&gt; &lt;FONT color="#FF6600"&gt;0.99&lt;/FONT&gt;]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 11:59:05 GMT</pubDate>
    <dc:creator>HubP_SDe</dc:creator>
    <dc:date>2021-02-01T11:59:05Z</dc:date>
    <item>
      <title>How to use Variables for Custom Quantiles</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Variables-for-Custom-Quantiles/m-p/354049#M60380</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been struggling for a while now, looking for a way of replacing the hardcoded values 0.95 and 0.99 below, with variables in an Application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	Continuous Distribution(
		Column( Eval( colSelect ) ),
		Horizontal Layout( 0 ),
		Histogram( 0 ),
		Vertical( 0 ),
		Std Error Bars( 1 ),
		Count Axis( 1 ),
		Show Percents( 1 ),
		Show Counts( 1 ),
		Axes on Left( 1 ),
		Outlier Box Plot( 0 ),
		Set Bin Width( 1 ),
		Custom Quantiles( &lt;FONT color="#339966"&gt;&lt;STRONG&gt;0.95, [0.95, 0.99]&lt;/STRONG&gt;&lt;/FONT&gt; ),
&lt;EM&gt;//		Custom Quantiles( &lt;FONT color="#FF0000"&gt;( Eval( Percent1 ) /100 ), [( Eval( Percent1 ) /100 ), ( Eval( Percent2 ) /100 )]&lt;/FONT&gt; ),&lt;/EM&gt;		Customize Summary Statistics(
			Std Err Mean( 0 ),
			Upper Mean Confidence Interval( 0 ),
			Lower Mean Confidence Interval( 0 ),
			Minimum( 1 ),
			Maximum( 1 )
		)
	),&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This Dialog script comes with a set of custom variables, including the column to be analyzed ("&lt;CODE class=" language-jsl"&gt;colSelect")&lt;/CODE&gt;, and two Percentile values, that are all well retrieved (Show(), earlier in same script):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = DataTable("Dep0Times_Overall_IST5000");&lt;BR /&gt;colSelect = "Total Time From Entrance Queue To First Pre-Sortation";&lt;BR /&gt;Percent1 = 95;
Percent2 = 99;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Whether I try the red line above with or without the Eval() method, I get the same annoying error below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Invalid matrix token.
Line 50 Column 49: ...val( Percent1 ) /100 ), [►( Eval( Percent1 ) /100 )...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:04:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Variables-for-Custom-Quantiles/m-p/354049#M60380</guid>
      <dc:creator>HubP_SDe</dc:creator>
      <dc:date>2023-06-09T22:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Variables for Custom Quantiles</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Variables-for-Custom-Quantiles/m-p/354091#M60381</link>
      <description>&lt;P&gt;The percent values are elements in a matrix, if you create the matrix before the Distribution, then it is a simple substitution to have it used.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = open("$SAMPLE_DATA/big class.jmp");
colSelect = "height";
percent1 = .95;
percent2 = .99;

perMatrix = Matrix( percent1 ) || Matrix( percent2 );

distribution(
	Continuous Distribution(
		Column( Eval( colSelect ) ),
		Horizontal Layout( 0 ),
		Histogram( 0 ),
		Vertical( 0 ),
		Std Error Bars( 1 ),
		Count Axis( 1 ),
		Show Percents( 1 ),
		Show Counts( 1 ),
		Axes on Left( 1 ),
		Outlier Box Plot( 0 ),
		Set Bin Width( 1 ),
		Custom Quantiles( Percent1, perMatrix ), 
//		Custom Quantiles( ( Eval( Percent1 ) /100 ), [( Eval( Percent1 ) /100 ), ( Eval( Percent2 ) /100 )] ),		Customize Summary Statistics(
		Std Err Mean( 0 ),
		Upper Mean Confidence Interval( 0 ),
		Lower Mean Confidence Interval( 0 ),
		Minimum( 1 ),
		Maximum( 1 )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jan 2021 19:26:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Variables-for-Custom-Quantiles/m-p/354091#M60381</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-29T19:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Variables for Custom Quantiles</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-Variables-for-Custom-Quantiles/m-p/354434#M60429</link>
      <description>&lt;P&gt;Jim &amp;amp; all,&lt;/P&gt;&lt;P&gt;This finally works (maybe not the most elegant syntax)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Percent1 = 95;&lt;BR /&gt;Percent2 = 99;&lt;BR /&gt;percentMatrix = &lt;FONT color="#008000"&gt;Matrix( {{ Percent1 /100 }, { Percent2 /100 }} )&lt;/FONT&gt;;&lt;BR /&gt;percentMatrix = [&lt;FONT color="#008000"&gt;0.95, 0.99&lt;/FONT&gt;];&lt;BR /&gt;...&lt;BR /&gt; Custom Quantiles( ( Percent1 /100 ), percentMatrix ),&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;instead of:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;percentMatrix = &lt;FONT color="#FF6600"&gt;Matrix( Percent1 /100 ) || Matrix( Percent2 /100 )&lt;/FONT&gt;;&lt;BR /&gt;percentMatrix = [&lt;FONT color="#008000"&gt;0.95&lt;/FONT&gt; &lt;FONT color="#FF6600"&gt;0.99&lt;/FONT&gt;]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 11:59:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-Variables-for-Custom-Quantiles/m-p/354434#M60429</guid>
      <dc:creator>HubP_SDe</dc:creator>
      <dc:date>2021-02-01T11:59:05Z</dc:date>
    </item>
  </channel>
</rss>

