<?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: Capability Analysis Script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/329913#M57910</link>
    <description>&lt;P&gt;Yes it is possible, you did not add Table data, however here script example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Capability(
    Y( :DATA ),
    Spec Limits( DATA( LSL( -2 ), Target( 0.5 ), USL( 3 ) ) ),
    Capability Indices Report( 1 ),
    Individual Detail Reports( 1 ),
    Capability Box Plots( 0 ),
    Goal Plot( 0 ),
    ,
    SendToReport(
        Dispatch( {"Capability Indices"}, "CPK", NumberColBox, {Select, Visibility( "Hidden" ), Select} )
    )
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess the easiest way to do it, in case you want to hide some specific area of the chart displayed, it is first create the chart as is, then right click in gray triangle, then select Edit, Show properties.&lt;/P&gt;
&lt;P&gt;From there you can click in any area of the displayed information that you want to hide, after selecting it then go to Visibility and choose Hidden.&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 14:25:25 GMT</pubDate>
    <dc:creator>AndresGlez</dc:creator>
    <dc:date>2020-11-05T14:25:25Z</dc:date>
    <item>
      <title>Capability Analysis Script</title>
      <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/329824#M57903</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to hide some of the capability indices when using Capability Analysis? I'm trying to write a control chart script that will only display Ppk, PPM, and % Actual out of Spec. This is part of a larger script and Control Chart Builder can't be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:42:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/329824#M57903</guid>
      <dc:creator>beginner</dc:creator>
      <dc:date>2023-06-09T23:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Capability Analysis Script</title>
      <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/329913#M57910</link>
      <description>&lt;P&gt;Yes it is possible, you did not add Table data, however here script example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Capability(
    Y( :DATA ),
    Spec Limits( DATA( LSL( -2 ), Target( 0.5 ), USL( 3 ) ) ),
    Capability Indices Report( 1 ),
    Individual Detail Reports( 1 ),
    Capability Box Plots( 0 ),
    Goal Plot( 0 ),
    ,
    SendToReport(
        Dispatch( {"Capability Indices"}, "CPK", NumberColBox, {Select, Visibility( "Hidden" ), Select} )
    )
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess the easiest way to do it, in case you want to hide some specific area of the chart displayed, it is first create the chart as is, then right click in gray triangle, then select Edit, Show properties.&lt;/P&gt;
&lt;P&gt;From there you can click in any area of the displayed information that you want to hide, after selecting it then go to Visibility and choose Hidden.&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 14:25:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/329913#M57910</guid>
      <dc:creator>AndresGlez</dc:creator>
      <dc:date>2020-11-05T14:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Capability Analysis Script</title>
      <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330611#M57972</link>
      <description>Thank you AndresGlez, using your code I was able to hide some of the columns, but not the rows. I'm trying to use Remove Element to delete the row, but that is not working. Below is what I have.&lt;BR /&gt;&lt;BR /&gt;dt = Current Data Table ();&lt;BR /&gt;dt &amp;lt;&amp;lt; Control Chart (&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:40:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330611#M57972</guid>
      <dc:creator>beginner</dc:creator>
      <dc:date>2020-11-06T15:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Capability Analysis Script</title>
      <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330612#M57973</link>
      <description>Thank you AndresGlez.&lt;BR /&gt;&lt;BR /&gt;I was able to hide some of the columns with your code, but not the rows. I'm trying to use NumberColBox &amp;lt;&amp;lt; Remove Element (), but it's not working like I expected. Below is the code, any tips are appreciated.&lt;BR /&gt;&lt;BR /&gt;dt = Current Data Table ();&lt;BR /&gt;&lt;BR /&gt;dt &amp;lt;&amp;lt; Control Chart (&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:43:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330612#M57973</guid>
      <dc:creator>beginner</dc:creator>
      <dc:date>2020-11-06T15:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Capability Analysis Script</title>
      <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330614#M57975</link>
      <description>I assume that what you specified in "Below is what I have" is not complete.  Could you please fix the issue?</description>
      <pubDate>Fri, 06 Nov 2020 15:52:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330614#M57975</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-11-06T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Capability Analysis Script</title>
      <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330615#M57976</link>
      <description>&lt;P&gt;Sorry about that. I hit Quick Reply instead of Reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a control chart with a two column table with "Capability" and "Index" as headers with 5 capability indices listed below. I'd like to hide some of the indices and tried the below code, but it didn't work as expected. I've omitted some of the code just to make it shorter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table ();

dt &amp;lt;&amp;lt; Control Chart (
        Sample Label (:Date),
        KSigma (3),
        Chart Col (
                 :Name ("Test")
                 XBar (Show Control Limits (0)),
                 R ( Show Control Limits (0)),
                 Capability (
                    Distribution (
                          Continuous Distribution(
                              Column ( :Name ("Test")),
                              Fit Distribution (Normal),
                              Capability Analysis (LSL (0), USL (1), Target (0.5)),
                              )
                  )
               )
           ),
SendToReport(
     Dispatch (
         {"Test", "Capability Analysis", "Long Term Sigma"
         },
        "Index"
        NumberColBox &amp;lt;&amp;lt; Remove Element (3)
        {Visibility ("Collapse")}
    ),
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Nov 2020 16:16:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330615#M57976</guid>
      <dc:creator>beginner</dc:creator>
      <dc:date>2020-11-06T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Capability Analysis Script</title>
      <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330617#M57977</link>
      <description>&lt;P&gt;Here is a simple script that deletes row 2 of the Capability Indices table in the report&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cap.PNG" style="width: 616px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28146iF5C182D838EDCB07/image-size/large?v=v2&amp;amp;px=999" role="button" title="cap.PNG" alt="cap.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

cap = Capability(
	Y( :NPN1, PNP1, NPN2 ),
	Capability Indices Report( 1 ),
	Individual Detail Reports( 1 ),
	Capability Box Plots( 0 ),
	Goal Plot( 1 )
);
capRP = cap &amp;lt;&amp;lt; report;

// Modify the Capability Indicies Table

// Delete 2nd row of the Columns column
columnsList = capRP["Capability Indices"][String Col Box( 1 )] &amp;lt;&amp;lt; get;
Remove From( columnsList, 2, 1 );
capRP["Capability Indices"][String Col Box( 1 )] &amp;lt;&amp;lt; Set( columnsList );

// Delete 2nd row of all of the Numeric columns in the table
For( i = 1, i &amp;lt; 8, i++,
	numList = capRP["Capability Indices"][Number Col Box( i )] &amp;lt;&amp;lt; get;
	Remove From( numList, 2, 1 );
	capRP["Capability Indices"][Number Col Box( i )] &amp;lt;&amp;lt; set( numList );
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Nov 2020 16:19:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330617#M57977</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-11-06T16:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Capability Analysis Script</title>
      <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330657#M57979</link>
      <description>&lt;P&gt;Here is my modification of your code........you are running JMP 14 apparently.&amp;nbsp; Anyway, my code deletes the 3rd element in the Long Term Sigma table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cap2.PNG" style="width: 584px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28147i69B46CC0F83862E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="cap2.PNG" alt="cap2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
clear symbols();
dt = Current Data Table ();
cap = dt &amp;lt;&amp;lt; Control Chart (
        Sample Label (:Site),
        KSigma (3),
        Chart Col (
                 :Name ("PNP3"),
                 XBar (Show Control Limits (0)),
                 R ( Show Control Limits (0)),
                 Capability (
                    Distribution (
                          Continuous Distribution(
                              Column ( :Name ("PNP3")),
                              Fit Distribution (Normal),
                              //Capability Analysis (LSL (0), USL (1), Target (0.5)),
                              )
                  )
               )
           ));
           
capRP = cap &amp;lt;&amp;lt; report;

numList = capRP["Long Term Sigma"][NumberColBox(1)] &amp;lt;&amp;lt; get;
numList[3] = .;
capRP["Long Term Sigma"][NumberColBox(1)] &amp;lt;&amp;lt; set(numList);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Nov 2020 17:13:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330657#M57979</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-11-06T17:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Capability Analysis Script</title>
      <link>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330685#M57982</link>
      <description>&lt;P&gt;Thank you, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to delete the sigma distribution graph?&lt;/P&gt;&lt;P&gt;Is it possible to delete an entire row in the Long Term Sigma, for example rows "CPL" and "CPU"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 19:35:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Capability-Analysis-Script/m-p/330685#M57982</guid>
      <dc:creator>beginner</dc:creator>
      <dc:date>2020-11-06T19:35:07Z</dc:date>
    </item>
  </channel>
</rss>

