<?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 How can this &amp;quot;weight&amp;quot; classification be made faster? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-this-quot-weight-quot-classification-be-made-faster/m-p/411954#M66150</link>
    <description>&lt;P&gt;The segmentation points of each body weight were calculated by combining and classifying the "Big Class.jmp", age and sex.&lt;BR /&gt;Each weight in each segment was then compared to these segment points to calculate the weight classification.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "TYP" );
Column( "TYP" ) &amp;lt;&amp;lt; Formula( Char( age ) || sex );
dt &amp;lt;&amp;lt; run formulas;
Column( "TYP" ) &amp;lt;&amp;lt; deleteFormula;

d2 = dt &amp;lt;&amp;lt; Summary(
	Group( :TYP ),
	Quantiles( 25, :weight ),
	Median( :weight ),
	Quantiles( 75, :weight ),
	Freq( "None" ),
	Weight( "None" ),
	Link to original data table( 0 )
);
Column( d2, 3 ) &amp;lt;&amp;lt; set name( "A" );
Column( d2, 4 ) &amp;lt;&amp;lt; set name( "B" );
Column( d2, 5 ) &amp;lt;&amp;lt; set name( "C" );
Current Data Table( dt );
dt &amp;lt;&amp;lt; Update( With( d2 ), Match Columns( TYP = TYP ) );
Column( "N Rows" ) &amp;lt;&amp;lt; Formula( If( weight &amp;gt; C, 4, If( weight &amp;gt; B, 3, If( weight &amp;gt; A, 2, 1 ) ) ) );
dt &amp;lt;&amp;lt; run formulas;
Column( "N Rows" ) &amp;lt;&amp;lt; deleteFormula;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-08-23_213559.png" style="width: 894px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35264i78B107BA48CD710D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-08-23_213559.png" alt="2021-08-23_213559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the data is large, and the classification, and segmentation points are large.&lt;BR /&gt;How can this "weight" classification be made faster?&lt;/P&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 19:55:06 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2023-06-09T19:55:06Z</dc:date>
    <item>
      <title>How can this "weight" classification be made faster?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-quot-weight-quot-classification-be-made-faster/m-p/411954#M66150</link>
      <description>&lt;P&gt;The segmentation points of each body weight were calculated by combining and classifying the "Big Class.jmp", age and sex.&lt;BR /&gt;Each weight in each segment was then compared to these segment points to calculate the weight classification.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
New Column( "TYP" );
Column( "TYP" ) &amp;lt;&amp;lt; Formula( Char( age ) || sex );
dt &amp;lt;&amp;lt; run formulas;
Column( "TYP" ) &amp;lt;&amp;lt; deleteFormula;

d2 = dt &amp;lt;&amp;lt; Summary(
	Group( :TYP ),
	Quantiles( 25, :weight ),
	Median( :weight ),
	Quantiles( 75, :weight ),
	Freq( "None" ),
	Weight( "None" ),
	Link to original data table( 0 )
);
Column( d2, 3 ) &amp;lt;&amp;lt; set name( "A" );
Column( d2, 4 ) &amp;lt;&amp;lt; set name( "B" );
Column( d2, 5 ) &amp;lt;&amp;lt; set name( "C" );
Current Data Table( dt );
dt &amp;lt;&amp;lt; Update( With( d2 ), Match Columns( TYP = TYP ) );
Column( "N Rows" ) &amp;lt;&amp;lt; Formula( If( weight &amp;gt; C, 4, If( weight &amp;gt; B, 3, If( weight &amp;gt; A, 2, 1 ) ) ) );
dt &amp;lt;&amp;lt; run formulas;
Column( "N Rows" ) &amp;lt;&amp;lt; deleteFormula;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-08-23_213559.png" style="width: 894px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/35264i78B107BA48CD710D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-08-23_213559.png" alt="2021-08-23_213559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the data is large, and the classification, and segmentation points are large.&lt;BR /&gt;How can this "weight" classification be made faster?&lt;/P&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:55:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-quot-weight-quot-classification-be-made-faster/m-p/411954#M66150</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2023-06-09T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can this "weight" classification be made faster?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-this-quot-weight-quot-classification-be-made-faster/m-p/412094#M66168</link>
      <description>&lt;P&gt;This step can be omitted&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;Column( "TYP" ) &amp;lt;&amp;lt; Formula( Char( age ) || sex );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Aug 2021 08:29:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-this-quot-weight-quot-classification-be-made-faster/m-p/412094#M66168</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2021-08-24T08:29:16Z</dc:date>
    </item>
  </channel>
</rss>

