<?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: Getting mode statistics in tabulate in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Getting-mode-statistics-in-tabulate/m-p/271124#M52764</link>
    <description>&lt;P&gt;Mode is not available in Tabulate, however it is available in Distribution, and with a little JSL, it can be added to your Tabulate table.&amp;nbsp; All it takes is to precalculate the MODE and then add it as a new column into your data table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mode.PNG" style="width: 242px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24417iFDF83452FEEC031D/image-size/large?v=v2&amp;amp;px=999" role="button" title="mode.PNG" alt="mode.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The missing values are because for those heights, multiple mode values were found.&lt;/P&gt;
&lt;P&gt;Here is the JSL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
dis = dt &amp;lt;&amp;lt; Distribution(invisible,
	Continuous Distribution(
		Column( :height ),
		Customize Summary Statistics( Mode( 1 ) )
	),by(:age)
);
dtstats = report(dis[1])["Summary Statistics"][TableBox(1)]&amp;lt;&amp;lt;make combined data table(invisible);
dis &amp;lt;&amp;lt; close window;
dtstats &amp;lt;&amp;lt; select where(:Column 1 != "Mode");
dtstats &amp;lt;&amp;lt; delete rows;
dtstats &amp;lt;&amp;lt; delete columns({"Y","Column 1"});
dtstats:Column 2 &amp;lt;&amp;lt; set name ("Mode");
dtstats:age &amp;lt;&amp;lt; data type(numeric)&amp;lt;&amp;lt;modeling type(ordinal);
dt &amp;lt;&amp;lt; Update(
	With( dtstats ),
	Match Columns( :age = :age )
);
close( dtstats, nosave );

dt &amp;lt;&amp;lt; Tabulate(
	Change Item Label( Statistics( Mean, "height" ) ),
	Show Control Panel( 0 ),
	Add Table(
		Column Table( Statistics( Mean ), Analysis Columns( :height ) ),
		Column Table( Statistics( Std Dev ), Analysis Columns( :height ) ),
		Column Table( Analysis Columns( :Mode ), Statistics( Mean ) ),
		Row Table( Grouping Columns( :age ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 06 Jun 2020 15:13:04 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-06-06T15:13:04Z</dc:date>
    <item>
      <title>Getting mode statistics in tabulate</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-mode-statistics-in-tabulate/m-p/271097#M52758</link>
      <description>&lt;P&gt;Hi JMP user community,&lt;/P&gt;&lt;P&gt;I have periodic inprocess record for batches manufactured, monitoring frequency is every 15 mins.&lt;/P&gt;&lt;P&gt;I have to calculate batch specific mode for the respective in-process entry.&lt;/P&gt;&lt;P&gt;I can't see the option of mode statistics in Analyze &amp;gt; tabulate. I am using JMP 14.3.0.&lt;/P&gt;&lt;P&gt;Is there way to get Mode as statistics using tabulate.&lt;/P&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="nil_0-1591448022987.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24415i4643185996F8A85E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nil_0-1591448022987.png" alt="nil_0-1591448022987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:36:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-mode-statistics-in-tabulate/m-p/271097#M52758</guid>
      <dc:creator>nil</dc:creator>
      <dc:date>2023-06-10T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Getting mode statistics in tabulate</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-mode-statistics-in-tabulate/m-p/271124#M52764</link>
      <description>&lt;P&gt;Mode is not available in Tabulate, however it is available in Distribution, and with a little JSL, it can be added to your Tabulate table.&amp;nbsp; All it takes is to precalculate the MODE and then add it as a new column into your data table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mode.PNG" style="width: 242px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24417iFDF83452FEEC031D/image-size/large?v=v2&amp;amp;px=999" role="button" title="mode.PNG" alt="mode.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The missing values are because for those heights, multiple mode values were found.&lt;/P&gt;
&lt;P&gt;Here is the JSL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
dis = dt &amp;lt;&amp;lt; Distribution(invisible,
	Continuous Distribution(
		Column( :height ),
		Customize Summary Statistics( Mode( 1 ) )
	),by(:age)
);
dtstats = report(dis[1])["Summary Statistics"][TableBox(1)]&amp;lt;&amp;lt;make combined data table(invisible);
dis &amp;lt;&amp;lt; close window;
dtstats &amp;lt;&amp;lt; select where(:Column 1 != "Mode");
dtstats &amp;lt;&amp;lt; delete rows;
dtstats &amp;lt;&amp;lt; delete columns({"Y","Column 1"});
dtstats:Column 2 &amp;lt;&amp;lt; set name ("Mode");
dtstats:age &amp;lt;&amp;lt; data type(numeric)&amp;lt;&amp;lt;modeling type(ordinal);
dt &amp;lt;&amp;lt; Update(
	With( dtstats ),
	Match Columns( :age = :age )
);
close( dtstats, nosave );

dt &amp;lt;&amp;lt; Tabulate(
	Change Item Label( Statistics( Mean, "height" ) ),
	Show Control Panel( 0 ),
	Add Table(
		Column Table( Statistics( Mean ), Analysis Columns( :height ) ),
		Column Table( Statistics( Std Dev ), Analysis Columns( :height ) ),
		Column Table( Analysis Columns( :Mode ), Statistics( Mean ) ),
		Row Table( Grouping Columns( :age ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Jun 2020 15:13:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-mode-statistics-in-tabulate/m-p/271124#M52764</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-06-06T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting mode statistics in tabulate</title>
      <link>https://community.jmp.com/t5/Discussions/Getting-mode-statistics-in-tabulate/m-p/271713#M52891</link>
      <description>Thanks for the script!&lt;BR /&gt;This is helpful..</description>
      <pubDate>Wed, 10 Jun 2020 06:09:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Getting-mode-statistics-in-tabulate/m-p/271713#M52891</guid>
      <dc:creator>nil</dc:creator>
      <dc:date>2020-06-10T06:09:19Z</dc:date>
    </item>
  </channel>
</rss>

