<?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: Customize Oneway analysis in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Customize-Oneway-analysis/m-p/210959#M42244</link>
    <description>&lt;P&gt;Here is a pretty hard coded example of one way to do this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output expansion.PNG" style="width: 614px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17473i0E0B72E8B94CD330/image-size/large?v=v2&amp;amp;px=999" role="button" title="output expansion.PNG" alt="output expansion.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA\Big Class.jmp", invisible( 1 ) );
colListY="height";
colListX="sex";
ow = dt &amp;lt;&amp;lt; Oneway(
	Y( :Eval( colListY  ) ),
	X( :Eval( colListX  ) ),
	All Graphs( 0 ),
	Quantiles( 1 ),
	Means and Std Dev( 1 ),
	Plot Quantile by Actual( 1 ),
	Line of Fit( 0 ),
	Points( 0 ),
	Box Plots( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 ),
	SendToReport(
		Dispatch( {"Quantiles"}, "", TableBox, {Set Shade Headings( 1 ), Set Shade Alternate Rows( 0 )} ),
		Dispatch( {"Quantiles"}, "10%", NumberColBox, {Visibility( "Collapse" )} ),
		Dispatch( {"Quantiles"}, "25%", NumberColBox, {Visibility( "Collapse" )} ),
		Dispatch( {"Quantiles"}, "75%", NumberColBox, {Visibility( "Collapse" )} ),
		Dispatch( {"Quantiles"}, "90%", NumberColBox, {Visibility( "Collapse" )} ),
		Dispatch(
			{"Normal Quantile Plot"},
			"2",
			ScaleBox,
			{Format( "Percent", 9, 2 )}
														
		)
													
	), 

);

// calculate the required new statistics
summarize(byGroup=by(as column(colListX)),byMax=Max(as column(colListY)),
	byMin=Min(as column(colListY)),byMedian=Quantile(as column(colListY),.5)
);

// Access the report output
repOW = ow &amp;lt;&amp;lt; report;

// Capture the names of the columns in the current table box output
namesList = repOW["Means and Std Deviations"][tablebox(1)] &amp;lt;&amp;lt; get names;

// Get the values from the current columns in the table box
levels = repOW["Means and Std Deviations"][stringcolbox(1)]&amp;lt;&amp;lt;get;
numbers = repOW["Means and Std Deviations"][numbercolbox(1)]&amp;lt;&amp;lt;get;
means = repOW["Means and Std Deviations"][numbercolbox(2)]&amp;lt;&amp;lt;get;
stddevs = repOW["Means and Std Deviations"][numbercolbox(3)]&amp;lt;&amp;lt;get;
stderrs = repOW["Means and Std Deviations"][numbercolbox(4)]&amp;lt;&amp;lt;get;
lowers = repOW["Means and Std Deviations"][numbercolbox(5)]&amp;lt;&amp;lt;get;
uppers = repOW["Means and Std Deviations"][numbercolbox(6)]&amp;lt;&amp;lt;get;

// Build the new table box adding in the new statistics 
newTB = Table Box(
	string col box(namesList[1], levels),
	number col box(namesList[2], numbers),
	number col box(namesList[3], means),
	number col box(namesList[4], stddevs),
	number col box(namesList[5], stderrs),
	number col box(namesList[6], lowers),
	number col box(namesList[7], uppers),
	number col box("Minimum", byMin),
	number col box("Median", byMedian),
	number col box("Maximum", byMax)	
);

// Append the new table box into the Means and Std Devs outline box
repOW["Means and Std Deviations"] &amp;lt;&amp;lt; append(newTB);

// Delete the original table box
repOW["Means and Std Deviations"][tablebox(1)]&amp;lt;&amp;lt;delete;


&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 May 2019 06:54:24 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-05-29T06:54:24Z</dc:date>
    <item>
      <title>Customize Oneway analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-Oneway-analysis/m-p/210947#M42242</link>
      <description>&lt;P&gt;Hi guys!&amp;nbsp;&lt;BR /&gt;I'm wondering if there is a way/script to move the minimum, median and maximum in to the Means and Std Deviations area.&lt;BR /&gt;Thank you !&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA\Big Class.jmp",invisible(1) );&lt;BR /&gt;&lt;BR /&gt;ow= dt&amp;lt;&amp;lt;Oneway(
Y( :Eval(colListY&amp;lt;&amp;lt;GetItems) ),
X( :Eval(colListX&amp;lt;&amp;lt;GetItems) ),
All Graphs( 0 ),
Quantiles( 1 ),
Means and Std Dev( 1 ),
Plot Quantile by Actual( 1 ),
Line of Fit( 0 ),
Points( 0 ),
Box Plots( 1 ),
Mean Error Bars( 1 ),
Std Dev Lines( 1 ),
SendToReport(
Dispatch(
{"Quantiles"},
"",
TableBox,
{Set Shade Headings( 1 ), Set Shade Alternate Rows( 0 )}
),
Dispatch( {"Quantiles"}, "10%", NumberColBox, {Visibility( "Collapse" )} ),
Dispatch( {"Quantiles"}, "25%", NumberColBox, {Visibility( "Collapse" )} ),
Dispatch( {"Quantiles"}, "75%", NumberColBox, {Visibility( "Collapse" )} ),
Dispatch( {"Quantiles"}, "90%", NumberColBox, {Visibility( "Collapse" )} ),
Dispatch(
{"Normal Quantile Plot"},
"2",
ScaleBox,
{Format("Percent",9,2 )}
														
)
													
),

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Problem1.PNG" style="width: 477px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17472i40330845C5479B50/image-size/large?v=v2&amp;amp;px=999" role="button" title="Problem1.PNG" alt="Problem1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 06:04:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-Oneway-analysis/m-p/210947#M42242</guid>
      <dc:creator>Jax</dc:creator>
      <dc:date>2019-05-29T06:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Oneway analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-Oneway-analysis/m-p/210959#M42244</link>
      <description>&lt;P&gt;Here is a pretty hard coded example of one way to do this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output expansion.PNG" style="width: 614px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/17473i0E0B72E8B94CD330/image-size/large?v=v2&amp;amp;px=999" role="button" title="output expansion.PNG" alt="output expansion.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA\Big Class.jmp", invisible( 1 ) );
colListY="height";
colListX="sex";
ow = dt &amp;lt;&amp;lt; Oneway(
	Y( :Eval( colListY  ) ),
	X( :Eval( colListX  ) ),
	All Graphs( 0 ),
	Quantiles( 1 ),
	Means and Std Dev( 1 ),
	Plot Quantile by Actual( 1 ),
	Line of Fit( 0 ),
	Points( 0 ),
	Box Plots( 1 ),
	Mean Error Bars( 1 ),
	Std Dev Lines( 1 ),
	SendToReport(
		Dispatch( {"Quantiles"}, "", TableBox, {Set Shade Headings( 1 ), Set Shade Alternate Rows( 0 )} ),
		Dispatch( {"Quantiles"}, "10%", NumberColBox, {Visibility( "Collapse" )} ),
		Dispatch( {"Quantiles"}, "25%", NumberColBox, {Visibility( "Collapse" )} ),
		Dispatch( {"Quantiles"}, "75%", NumberColBox, {Visibility( "Collapse" )} ),
		Dispatch( {"Quantiles"}, "90%", NumberColBox, {Visibility( "Collapse" )} ),
		Dispatch(
			{"Normal Quantile Plot"},
			"2",
			ScaleBox,
			{Format( "Percent", 9, 2 )}
														
		)
													
	), 

);

// calculate the required new statistics
summarize(byGroup=by(as column(colListX)),byMax=Max(as column(colListY)),
	byMin=Min(as column(colListY)),byMedian=Quantile(as column(colListY),.5)
);

// Access the report output
repOW = ow &amp;lt;&amp;lt; report;

// Capture the names of the columns in the current table box output
namesList = repOW["Means and Std Deviations"][tablebox(1)] &amp;lt;&amp;lt; get names;

// Get the values from the current columns in the table box
levels = repOW["Means and Std Deviations"][stringcolbox(1)]&amp;lt;&amp;lt;get;
numbers = repOW["Means and Std Deviations"][numbercolbox(1)]&amp;lt;&amp;lt;get;
means = repOW["Means and Std Deviations"][numbercolbox(2)]&amp;lt;&amp;lt;get;
stddevs = repOW["Means and Std Deviations"][numbercolbox(3)]&amp;lt;&amp;lt;get;
stderrs = repOW["Means and Std Deviations"][numbercolbox(4)]&amp;lt;&amp;lt;get;
lowers = repOW["Means and Std Deviations"][numbercolbox(5)]&amp;lt;&amp;lt;get;
uppers = repOW["Means and Std Deviations"][numbercolbox(6)]&amp;lt;&amp;lt;get;

// Build the new table box adding in the new statistics 
newTB = Table Box(
	string col box(namesList[1], levels),
	number col box(namesList[2], numbers),
	number col box(namesList[3], means),
	number col box(namesList[4], stddevs),
	number col box(namesList[5], stderrs),
	number col box(namesList[6], lowers),
	number col box(namesList[7], uppers),
	number col box("Minimum", byMin),
	number col box("Median", byMedian),
	number col box("Maximum", byMax)	
);

// Append the new table box into the Means and Std Devs outline box
repOW["Means and Std Deviations"] &amp;lt;&amp;lt; append(newTB);

// Delete the original table box
repOW["Means and Std Deviations"][tablebox(1)]&amp;lt;&amp;lt;delete;


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 06:54:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-Oneway-analysis/m-p/210959#M42244</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-05-29T06:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Customize Oneway analysis</title>
      <link>https://community.jmp.com/t5/Discussions/Customize-Oneway-analysis/m-p/210967#M42251</link>
      <description>&lt;P&gt;Hi txnelson!&lt;BR /&gt;Thank you so much for helping once again.&lt;BR /&gt;Yes, this was what I was looking for, I'll learn through the code and understand it&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 08:28:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Customize-Oneway-analysis/m-p/210967#M42251</guid>
      <dc:creator>Jax</dc:creator>
      <dc:date>2019-05-29T08:28:39Z</dc:date>
    </item>
  </channel>
</rss>

