<?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: JMP Script : Pareto plot - combine last causes in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-Script-Pareto-plot-combine-last-causes/m-p/8944#M8920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently, there is no scriptable method for Last Causes.&amp;nbsp; We will consider adding this in a future release.&amp;nbsp; In the meantime, you can generate the list of desired items to combine as shown below for JMP 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;dt = Open( "$SAMPLE_DATA\Quality Control\Failure.jmp" );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/* Sort table by N */&lt;BR /&gt;dt &amp;lt;&amp;lt; Sort( By( :N ), Order( Descending ), Replace Table );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;lastCauses = 3;&lt;BR /&gt;combineList = {};&lt;BR /&gt;start = N Rows( dt ) - lastCauses + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/* Build list for Last Causes */&lt;BR /&gt;For( i = start, i &amp;lt;= N Rows( dt ), i++,&lt;BR /&gt; Insert Into( combineList, Column( "failure" )&lt;I&gt; )&lt;BR /&gt;);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/* Use the list in Combine Causes&amp;nbsp; */&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;pPlot = dt &amp;lt;&amp;lt; Pareto Plot(&lt;BR /&gt; Cause( :failure ),&lt;BR /&gt; Freq( :N ),&lt;BR /&gt; Combine Causes( combineList )&lt;BR /&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2014 15:03:26 GMT</pubDate>
    <dc:creator>Wendy_Murphrey</dc:creator>
    <dc:date>2014-07-16T15:03:26Z</dc:date>
    <item>
      <title>JMP Script : Pareto plot - combine last causes</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-Pareto-plot-combine-last-causes/m-p/8943#M8919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;JMP Script : Pareto plot - combine causes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello? &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.jmp.com/7.0.1.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;I do like to combine &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Last 3 causes&lt;/STRONG&gt;&lt;/SPAN&gt; at Pareto plot.&lt;/P&gt;&lt;P&gt;In this case, how can I make script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=====================================================&lt;/P&gt;&lt;P&gt;Names Default To Here( 1 );&lt;/P&gt;&lt;P&gt;dt = Open(&lt;/P&gt;&lt;P&gt; "$SAMPLE_DATA/Quality Control/Failure2.jmp"&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;obj = Pareto Plot( Cause( :failure ), Freq( :N ) );&lt;/P&gt;&lt;P&gt;Wait( 2 );&lt;/P&gt;&lt;P&gt;obj &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Combine Causes(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt; &lt;STRONG&gt;{"miscellaneous", "silicon defect", "doping"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;=====================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I change the script as below, but it is not working. &lt;SPAN __jive_emoticon_name="cry" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.jmp.com/7.0.1.0/images/emoticons/cry.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Combine Causes( &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Last Causes (3)&lt;/STRONG&gt;&lt;/SPAN&gt; )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help in advance. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://community.jmp.com/7.0.1.0/images/emoticons/happy.png" width="1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 02:40:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-Pareto-plot-combine-last-causes/m-p/8943#M8919</guid>
      <dc:creator>Steve_Kim</dc:creator>
      <dc:date>2014-07-15T02:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script : Pareto plot - combine last causes</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-Pareto-plot-combine-last-causes/m-p/8944#M8920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently, there is no scriptable method for Last Causes.&amp;nbsp; We will consider adding this in a future release.&amp;nbsp; In the meantime, you can generate the list of desired items to combine as shown below for JMP 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;dt = Open( "$SAMPLE_DATA\Quality Control\Failure.jmp" );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/* Sort table by N */&lt;BR /&gt;dt &amp;lt;&amp;lt; Sort( By( :N ), Order( Descending ), Replace Table );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;lastCauses = 3;&lt;BR /&gt;combineList = {};&lt;BR /&gt;start = N Rows( dt ) - lastCauses + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/* Build list for Last Causes */&lt;BR /&gt;For( i = start, i &amp;lt;= N Rows( dt ), i++,&lt;BR /&gt; Insert Into( combineList, Column( "failure" )&lt;I&gt; )&lt;BR /&gt;);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;/* Use the list in Combine Causes&amp;nbsp; */&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;pPlot = dt &amp;lt;&amp;lt; Pareto Plot(&lt;BR /&gt; Cause( :failure ),&lt;BR /&gt; Freq( :N ),&lt;BR /&gt; Combine Causes( combineList )&lt;BR /&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2014 15:03:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-Pareto-plot-combine-last-causes/m-p/8944#M8920</guid>
      <dc:creator>Wendy_Murphrey</dc:creator>
      <dc:date>2014-07-16T15:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script : Pareto plot - combine last causes</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-Pareto-plot-combine-last-causes/m-p/379075#M62899</link>
      <description>&lt;P&gt;These options have been on our to-do list for Pareto since this item was reported. Pareto is getting a huge set of improvements in JMP 17, and I am happy to report that these JSL options will be available as well. JMP 17 will be available in mid-2022.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 18:26:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-Pareto-plot-combine-last-causes/m-p/379075#M62899</guid>
      <dc:creator>Audrey_Shull</dc:creator>
      <dc:date>2021-04-22T18:26:56Z</dc:date>
    </item>
  </channel>
</rss>

