<?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 Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752819#M93444</link>
    <description>&lt;P&gt;I have seen Big Class.jmp's table with the same JSL get a mean column that already retains a significant number, but my own table does not.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt = Current Data Table();
d2 = dt &amp;lt;&amp;lt; Summary(
	Group( 2 ),
	Mean( 4 ),
	Freq( 0 ),
	Weight( 0 ),
	Link to original data table( 0 ),
	statistics column name format( "column" )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-05-08_15-59-13.png" style="width: 626px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64004iC8E3AFA9C61F3243/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-05-08_15-59-13.png" alt="2024-05-08_15-59-13.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 08:04:41 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2024-05-08T08:04:41Z</dc:date>
    <item>
      <title>Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752819#M93444</link>
      <description>&lt;P&gt;I have seen Big Class.jmp's table with the same JSL get a mean column that already retains a significant number, but my own table does not.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt = Current Data Table();
d2 = dt &amp;lt;&amp;lt; Summary(
	Group( 2 ),
	Mean( 4 ),
	Freq( 0 ),
	Weight( 0 ),
	Link to original data table( 0 ),
	statistics column name format( "column" )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-05-08_15-59-13.png" style="width: 626px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64004iC8E3AFA9C61F3243/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-05-08_15-59-13.png" alt="2024-05-08_15-59-13.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 08:04:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752819#M93444</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-05-08T08:04:41Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752830#M93445</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;I saw that the summary table generated by Big Class.jmp was automatically formatted.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-05-08_16-06-21.png" style="width: 660px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64005i1E593C57E0993245/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-05-08_16-06-21.png" alt="2024-05-08_16-06-21.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 08:08:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752830#M93445</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-05-08T08:08:30Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752844#M93448</link>
      <description>&lt;P&gt;Is your desire to have the actual value in the data table to only have a specified number of significant digits or is the requirement to just have the format for the result column to have the specified number of digits?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, when the Summary table is generated for a column that has the number of decimal places specified in it's format, JMP will add an additional decimal place to the output tables summarized column.&amp;nbsp; To set the format's number of significant decimals to anything other than this will require the adding of JSL to set the format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 11:15:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752844#M93448</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-05-08T11:15:46Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752855#M93450</link>
      <description>&lt;P&gt;I want&amp;nbsp;&lt;SPAN&gt;the actual value in the data table to only have a specified number of significant digits.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;So the final file size is small.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank Jim!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;This script gets larger volume.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column( d2, 3 ) &amp;lt;&amp;lt; Format( "Fixed Dec", 20, 2 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Do have to use this script?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;r = N Row( d2 );
ar = d2 &amp;lt;&amp;lt; GetAsMatrix( 3 );
For( i = 1, i &amp;lt;= r, i++,
	ar[i, 1] = Round( ar[i, 1], 2 )
);
d2[0, 3] = ar;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 11:40:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752855#M93450</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-05-08T11:40:15Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752856#M93451</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Can set it in the preferences?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 08 May 2024 11:41:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752856#M93451</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-05-08T11:41:31Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752859#M93454</link>
      <description>&lt;P&gt;There are several ways to compress your data.&amp;nbsp; If you want to compress specific columns, you can select them and then go to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Cols=&amp;gt;Utilities=&amp;gt;Compress Selected Columns&lt;/P&gt;
&lt;P&gt;The preferences can be set&amp;nbsp; to save the tables in a compressed format.&amp;nbsp; There is also a preference that will allow for propagate compressed columns.&lt;/P&gt;
&lt;P&gt;Look in the General preferences.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 12:12:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752859#M93454</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-05-08T12:12:10Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752875#M93456</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;My data sheets are all compressed.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-05-08_20-48-05.png" style="width: 577px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64007i022DC1C2F5E19DB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-05-08_20-48-05.png" alt="2024-05-08_20-48-05.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 12:49:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752875#M93456</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-05-08T12:49:12Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752878#M93457</link>
      <description>&lt;P&gt;Is your issue with the size of the data table in RAM memory or in saving the data to disk?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 13:02:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752878#M93457</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-05-08T13:02:00Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752890#M93458</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;Yes, save to local hard disk.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Thanks!&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 08 May 2024 13:20:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752890#M93458</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-05-08T13:20:15Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752899#M93460</link>
      <description>&lt;P&gt;I am not aware of any additional options you can use beyond the preferences you have set.&amp;nbsp; Other Community members may have additional information.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 13:31:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752899#M93460</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-05-08T13:31:39Z</dc:date>
    </item>
    <item>
      <title>回复： Averaging with the Summary command. How can I use the mean column of the generated table to keep a significant number?</title>
      <link>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752944#M93473</link>
      <description>&lt;P&gt;If you have already enabled compressions and ok with the value changes, you can use a loop like you suggested. Loop below might be a bit simpler than your suggestion&lt;/P&gt;
&lt;PRE&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt_summary = dt &amp;lt;&amp;lt; Summary(
	Group(:age),
	Mean(:height),
	Freq(0),
	Weight(0),
	Link to original data table(0),
	statistics column name format("column")
);

cont_cols = dt_summary &amp;lt;&amp;lt; Get Column Names(Continuous, "String");
Column(dt_summary, "height") &amp;lt;&amp;lt; Format("Fixed Dec", 20, 2);

For Each({colname}, cont_cols,
	Column(dt_summary, colname) &amp;lt;&amp;lt; Set Values(
		Round(dt_summary[0, colname], 1);	
	)
);
&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;
&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also depending on your data, you might want to go for integers as they take less space and then you could further compress those to short-integers &lt;A href="https://www.jmp.com/support/help/en/18.0/#page/jmp/the-shortinteger-format.shtml#" target="_blank"&gt;https://www.jmp.com/support/help/en/18.0/#page/jmp/the-shortinteger-format.shtml#&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 15:00:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Averaging-with-the-Summary-command-How-can-I-use-the-mean-column/m-p/752944#M93473</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-05-08T15:00:47Z</dc:date>
    </item>
  </channel>
</rss>

