<?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: Changing Summary Statistics Format of Distribution - JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353298#M60274</link>
    <description>&lt;P&gt;The last line in here might be what you are looking for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);

dt = Open("$Sample_Data/iris.jmp");

dist = dt &amp;lt;&amp;lt; Distribution(
	Continuous Distribution( Column( :Sepal length ) ),
	Continuous Distribution( Column( :Sepal width ) ),
	Continuous Distribution( Column( :Petal length ) ),
	Continuous Distribution( Column( :Petal width ) ),
	Nominal Distribution( Column( :Species ) )
);

//use this to help create XPath queries
dist &amp;lt;&amp;lt; Get XML; 

//rename some outline boxes
(dist &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey='Distrib Freq']")) &amp;lt;&amp;lt; Set title("Freq");
(dist &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey='Distrib Quantiles']")) &amp;lt;&amp;lt; Set title("Quant");

//Find all scale boxes from continuous distributions and change the scales
(dist &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey='DistribC']//ScaleBox[@ID='1']")) &amp;lt;&amp;lt; {Min( 0 ), Max( 8 ), Inc( 0.5 ), Minor Ticks( 0 )};&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Jan 2021 15:37:58 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2021-01-27T15:37:58Z</dc:date>
    <item>
      <title>Changing Summary Statistics Format of Distribution - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353271#M60270</link>
      <description>&lt;P&gt;Hi, I think this should be a quickie, but I'm stuck on it: How do I change the format of all the Summary Statistics of a Distribution report at once?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After formatting as I'd like, the auto-generated script shows to change it for every entry of the distribution individually like so:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	SendToReport(
		Dispatch(
			{},
			"Distributions",
			OutlineBox,
			{Set Title( "Summary Data Distribution" )}
		),
		Dispatch(
			{"20 Hz (dB re: 1 kHz)"},
			"1",
			ScaleBox,
			{Min( -10 ), Max( -1 ), Inc( 0.1 ), Minor Ticks( 1 )}
		),&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I'd like to apply it to all of them at once to reduce the code significantly.&amp;nbsp; I tried sending a set format to the report and a few other things, but none worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:04:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353271#M60270</guid>
      <dc:creator>ToddKeebler</dc:creator>
      <dc:date>2023-06-09T22:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Summary Statistics Format of Distribution - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353290#M60271</link>
      <description>&lt;P&gt;I am not sure I really understand this request but here goes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dist = dt &amp;lt;&amp;lt; Distribution( Y( :weight ) );

dist rep = dist &amp;lt;&amp;lt; Report;

dist rep["Summary Statistics"][NumberColBox(1)] &amp;lt;&amp;lt; Set Format( "Fixed Dec", 15, 8 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 15:20:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353290#M60271</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-01-27T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Summary Statistics Format of Distribution - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353298#M60274</link>
      <description>&lt;P&gt;The last line in here might be what you are looking for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);

dt = Open("$Sample_Data/iris.jmp");

dist = dt &amp;lt;&amp;lt; Distribution(
	Continuous Distribution( Column( :Sepal length ) ),
	Continuous Distribution( Column( :Sepal width ) ),
	Continuous Distribution( Column( :Petal length ) ),
	Continuous Distribution( Column( :Petal width ) ),
	Nominal Distribution( Column( :Species ) )
);

//use this to help create XPath queries
dist &amp;lt;&amp;lt; Get XML; 

//rename some outline boxes
(dist &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey='Distrib Freq']")) &amp;lt;&amp;lt; Set title("Freq");
(dist &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey='Distrib Quantiles']")) &amp;lt;&amp;lt; Set title("Quant");

//Find all scale boxes from continuous distributions and change the scales
(dist &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey='DistribC']//ScaleBox[@ID='1']")) &amp;lt;&amp;lt; {Min( 0 ), Max( 8 ), Inc( 0.5 ), Minor Ticks( 0 )};&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jan 2021 15:37:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353298#M60274</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-01-27T15:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Summary Statistics Format of Distribution - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353449#M60297</link>
      <description>&lt;P&gt;Hey Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies if my initial question wasn't clear.&amp;nbsp; I also realized that I didn't copy the important part of the code in the original post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code snippet you supplied works well for a single Y column, but what I was looking to do was to change the format of all the Y columns that are included in the distribution with one line of code rather than multiple.&amp;nbsp; So basically rather than specify "NumberColBox(X)" to change the Xth Y Column, I'd like to just specify something like "NumberColBox" to change all of the Y Columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that make more sense?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 22:27:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353449#M60297</guid>
      <dc:creator>ToddKeebler</dc:creator>
      <dc:date>2021-01-27T22:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Summary Statistics Format of Distribution - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353451#M60298</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ToddKeebler_0-1611786745442.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29788i6010762A21094A6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ToddKeebler_0-1611786745442.png" alt="ToddKeebler_0-1611786745442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here you can see that I've customized the summary statistics using the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SummaryDist &amp;lt;&amp;lt; Customize Summary Statistics( 
	Std Err Mean( 0 ),
	Upper Mean Confidence Interval( 0 ),
	Lower Mean Confidence Interval( 0 ),
	Minimum( 1 ),
	Maximum( 1 ),
	Trimmed Mean( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then I used your code to change the 20 Hz Y column of data to 2 decimal places:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SummaryDistRep["SummaryStatistics"][NumberColBox(1)] &amp;lt;&amp;lt; Set Format("Fixed Dec", 15,2);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But the remaining y columns for 20 kHz and Sensitivity haven't had their format changed.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 22:35:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353451#M60298</guid>
      <dc:creator>ToddKeebler</dc:creator>
      <dc:date>2021-01-27T22:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Summary Statistics Format of Distribution - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353602#M60313</link>
      <description>&lt;P&gt;Try this alternative.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dist = dt &amp;lt;&amp;lt; Distribution( Y( :weight ) );

dist rep = dist &amp;lt;&amp;lt; Report;

(dist rep &amp;lt;&amp;lt; XPath("//NumberColBox")) &amp;lt;&amp;lt; Set Format( "Fixed Dec", 15, 8 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Just be aware that this simple script assumes that EVERY number column box should be changed.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 14:54:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353602#M60313</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-01-28T14:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Summary Statistics Format of Distribution - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353620#M60318</link>
      <description>&lt;P&gt;Expanding just a bit on&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;'s&amp;nbsp;solution, changing the last line to this would apply this formatting to only items inside outlines boxes called 'Summary Statistics':&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(dist rep &amp;lt;&amp;lt; XPath("//OutlineBox[text()='Summary Statistics']//NumberColBox")) &amp;lt;&amp;lt; Set Format( "Fixed Dec", 15, 8 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jan 2021 15:53:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353620#M60318</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-01-28T15:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Summary Statistics Format of Distribution - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353741#M60335</link>
      <description>&lt;P&gt;Perfect, this works great and seems like this may come in useful in other instances!&amp;nbsp; Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Todd&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 21:12:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Changing-Summary-Statistics-Format-of-Distribution-JSL/m-p/353741#M60335</guid>
      <dc:creator>ToddKeebler</dc:creator>
      <dc:date>2021-01-28T21:12:01Z</dc:date>
    </item>
  </channel>
</rss>

