<?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 do i create a summary table with  means and the signifcantly different letters ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-do-i-create-a-summary-table-with-means-and-the-signifcantly/m-p/281055#M54433</link>
    <description>&lt;P&gt;Here is a start for creating the report table you want&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="letters.PNG" style="width: 499px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25656i1E1B9972233B5AC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="letters.PNG" alt="letters.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Specify the parameters to be analyzed and the Factor column
colNames = {"height", "weight"};
factor = "age";

// Create the beginnings of the final data table
Summarize( dt, levelGroup = by( As Column( factor ) ) );
dtFinal = New Table( "Final", New Column( "Level", character, set values( levelGroup ) ) );

// Loop across all of the parameters and gather the data
For( p = 1, p &amp;lt;= N Items( colNames ), p++,
	ow = dt &amp;lt;&amp;lt; Oneway( invisible, Y( Column( dt, colNames[p] ) ), X( Column( dt, factor ) ), All Pairs( 1 ) );
	// Add the combined letters column
	Report( ow )["Connecting Letters Report"][String Col Box( 17 )] &amp;lt;&amp;lt; visibility( "Visible" );
	// Delete all of the individual letters columns
	For( i = 2, i &amp;lt;= 16, i++,
		Report( ow )["Connecting Letters Report"][String Col Box( i )] &amp;lt;&amp;lt; visibility( "Collapse" )
	);
	// Create a data table from the Means/Letters table
	dtLetters = Report( ow )["Connecting Letters Report"][Table Box( 1 )] &amp;lt;&amp;lt; make into data table;
	// Combine the Means and Letters
	dtLetters:Mean &amp;lt;&amp;lt; data type(character);
	for each row(
		dtLetters:Mean = dtLetters:Mean || " " || dtLetters:Letters;
	);
	// Change the name of the column to the parameter name
	dtLetters:Mean &amp;lt;&amp;lt; set name( ColNames[p] );
	dtLetters &amp;lt;&amp;lt; delete columns("letters");
	// Add the current table to the overall table
	dtFinal &amp;lt;&amp;lt;Update( With( dtLetters ), Match Columns( :Level = :Level ) );
	// Clean up the report window and temporary table
	ow &amp;lt;&amp;lt; close window;
	Close( dtLetters, nosave );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Jul 2020 11:52:48 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-07-22T11:52:48Z</dc:date>
    <item>
      <title>how do i create a summary table with  means and the signifcantly different letters ?</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-i-create-a-summary-table-with-means-and-the-signifcantly/m-p/281009#M54426</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I use jmp to analyze experiments and than i need to show the means in a summary table with the&amp;nbsp;signifcantly different letters (using one of the compare means test such as student t or tukey kramer)&lt;/P&gt;&lt;P&gt;i don't know how to do it in one table with jmp so what i do is to export each table (for each parameter separately) to excel and than sort it out there but it takes a lot of time&lt;/P&gt;&lt;P&gt;is there a way to do it in an easy way with jmp?&lt;/P&gt;&lt;P&gt;what i want in the end is a table that looks like this&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;treatment&lt;/TD&gt;&lt;TD&gt;paramter 1&lt;/TD&gt;&lt;TD&gt;paramter 2&lt;/TD&gt;&lt;TD&gt;paramter 3&lt;/TD&gt;&lt;TD&gt;paramter 4&lt;/TD&gt;&lt;TD&gt;paramter 5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;treatment 1&lt;/TD&gt;&lt;TD&gt;100 A&amp;nbsp;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54 AB&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;93 A&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;or if it's not possible than maybe one table for the means and another for the letters or something like that&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;someone have an easy way to do it ?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:16:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-i-create-a-summary-table-with-means-and-the-signifcantly/m-p/281009#M54426</guid>
      <dc:creator>LiG</dc:creator>
      <dc:date>2023-06-10T23:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: how do i create a summary table with  means and the signifcantly different letters ?</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-i-create-a-summary-table-with-means-and-the-signifcantly/m-p/281055#M54433</link>
      <description>&lt;P&gt;Here is a start for creating the report table you want&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="letters.PNG" style="width: 499px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25656i1E1B9972233B5AC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="letters.PNG" alt="letters.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Specify the parameters to be analyzed and the Factor column
colNames = {"height", "weight"};
factor = "age";

// Create the beginnings of the final data table
Summarize( dt, levelGroup = by( As Column( factor ) ) );
dtFinal = New Table( "Final", New Column( "Level", character, set values( levelGroup ) ) );

// Loop across all of the parameters and gather the data
For( p = 1, p &amp;lt;= N Items( colNames ), p++,
	ow = dt &amp;lt;&amp;lt; Oneway( invisible, Y( Column( dt, colNames[p] ) ), X( Column( dt, factor ) ), All Pairs( 1 ) );
	// Add the combined letters column
	Report( ow )["Connecting Letters Report"][String Col Box( 17 )] &amp;lt;&amp;lt; visibility( "Visible" );
	// Delete all of the individual letters columns
	For( i = 2, i &amp;lt;= 16, i++,
		Report( ow )["Connecting Letters Report"][String Col Box( i )] &amp;lt;&amp;lt; visibility( "Collapse" )
	);
	// Create a data table from the Means/Letters table
	dtLetters = Report( ow )["Connecting Letters Report"][Table Box( 1 )] &amp;lt;&amp;lt; make into data table;
	// Combine the Means and Letters
	dtLetters:Mean &amp;lt;&amp;lt; data type(character);
	for each row(
		dtLetters:Mean = dtLetters:Mean || " " || dtLetters:Letters;
	);
	// Change the name of the column to the parameter name
	dtLetters:Mean &amp;lt;&amp;lt; set name( ColNames[p] );
	dtLetters &amp;lt;&amp;lt; delete columns("letters");
	// Add the current table to the overall table
	dtFinal &amp;lt;&amp;lt;Update( With( dtLetters ), Match Columns( :Level = :Level ) );
	// Clean up the report window and temporary table
	ow &amp;lt;&amp;lt; close window;
	Close( dtLetters, nosave );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jul 2020 11:52:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-i-create-a-summary-table-with-means-and-the-signifcantly/m-p/281055#M54433</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-22T11:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: how do i create a summary table with  means and the signifcantly different letters ?</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-i-create-a-summary-table-with-means-and-the-signifcantly/m-p/281059#M54435</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;but... i am not a very sophisticated user of the software so it will help me a lot if you can please explain in more details what do i do with the code you posted?&lt;/P&gt;&lt;P&gt;where do i paste it and how do i choose which statiastical test to use (for example tukey kramer or student t)&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 12:11:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-i-create-a-summary-table-with-means-and-the-signifcantly/m-p/281059#M54435</guid>
      <dc:creator>LiG</dc:creator>
      <dc:date>2020-07-22T12:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: how do i create a summary table with  means and the signifcantly different letters ?</title>
      <link>https://community.jmp.com/t5/Discussions/how-do-i-create-a-summary-table-with-means-and-the-signifcantly/m-p/281064#M54436</link>
      <description>&lt;P&gt;Go to the pull down menus and select&lt;BR /&gt;File==&amp;gt;New==&amp;gt;Script&lt;BR /&gt;Then cut and paste the script from the webpage to the script window&lt;/P&gt;
&lt;P&gt;Click on the Run icon&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="run.PNG" style="width: 86px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25657i83B1066B63733F06/image-dimensions/86x51?v=v2" width="86" height="51" role="button" title="run.PNG" alt="run.PNG" /&gt;&lt;/span&gt;&amp;nbsp;to run the script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure it gives you the same results and that it is what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning the Student t vs. the Kramer's etc.&amp;nbsp; that can be changed in the script. "All Pairs" in the line&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ow = dt &amp;lt;&amp;lt; Oneway( invisible, Y( Column( dt, colNames[p] ) ), X( Column( dt, factor ) ), All Pairs( 1 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;refers to Tukey&lt;/P&gt;
&lt;P&gt;"Each Pair" in the below line refers to Student t&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ow = dt &amp;lt;&amp;lt; Oneway( invisible, Y( Column( dt, colNames[p] ) ), X( Column( dt, factor ) ), Each Pair( 1 ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The JSL I provided is a good start to get you where you want to go.&amp;nbsp; The expectation, is that what is provided will give you a good "leg up" in getting your problem solved.&amp;nbsp; Just as you have done with Excel, there is learning that needs to take place.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Community is here to help make the learning curve as easy as it can.&lt;/P&gt;
&lt;P&gt;I strongly suggest that you take the time to go through some of the JMP Documentation.&amp;nbsp; In particular, the documents, Discovering JMP, Using JMP and then after that, the Scripting Guide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;JMP Documentation Library&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Everything that is done in the script, can be done interactively too.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run the Fit Y by X analysis you want, and generate the Letters Comparisons&lt;/LI&gt;
&lt;LI&gt;Right click on the Letters Table, and select Columns.&lt;/LI&gt;
&lt;LI&gt;Uncheck all of the columns called --Letters Column A-O&lt;/LI&gt;
&lt;LI&gt;Check the column called "Letters"&lt;/LI&gt;
&lt;LI&gt;Right click again on the Letters table, and select "Make into data table"&lt;/LI&gt;
&lt;LI&gt;To put the Mean column and the Letters column together, just create a new character column giving it the current parameters name.&amp;nbsp; The specify the following formula for the column
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;char(:Mean) || " " || :Letters&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Now delete the 2 unnecessary columns, Mean and Letters&lt;/LI&gt;
&lt;LI&gt;If this is the 1st parameter, then just keep the table.&amp;nbsp; If this is a 2nd or later parameter, you just need to run&amp;nbsp; &amp;nbsp; Tables==&amp;gt;Update&amp;nbsp; &amp;nbsp;to put the current parameter table together with the initial table&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 22 Jul 2020 13:00:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-do-i-create-a-summary-table-with-means-and-the-signifcantly/m-p/281064#M54436</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-22T13:00:14Z</dc:date>
    </item>
  </channel>
</rss>

