<?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 Apply K Sigma and extract specs in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Apply-K-Sigma-and-extract-specs/m-p/913411#M107322</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to calculate and extract specs using K sigma in process capability. However, something is off, and I am stuck. Is there a way to apply the K sigma and calculate the specs after the best model fitting and save those specs into a list?&lt;/P&gt;
&lt;P&gt;See the below pic:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__1-1763138156480.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87058iC73F41304FEC296D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__1-1763138156480.png" alt="Jackie__1-1763138156480.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the jsl to plot histograms and apply the fit, I would like to know how to code the steps for applying K Sigma and extracting LSL and USL for all the cols&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );

cols = {"PNP2", "NPN2", "PNP3", "IVP1", "PNP4"};

New Window( "",
	&amp;lt;&amp;lt;Type( "dialog" ),
	For Each( {mct, id}, cols,
		dis = Distribution(
			Uniform Scaling( 1 ),
			Stack( 1 ),
			Quantiles( 0 ),
			Summary Statistics( 0 ),
			Horizontal Layout( 1 ),
			Vertical( 0 ),
			Continuous Distribution( Column( Eval( mct ) ) )
					
			
		);
		
		dis &amp;lt;&amp;lt; Fit All;
			
		scb = Report( dis )[Outline Box( "Compare Distributions" ), Table Box( 1 ), String Col Box( 1 )];
		bestdist = scb[1];
		
				eval(parse("dis &amp;lt;&amp;lt;  Fit "||  bestdist |||"(Process Capability( Set sigma multiplier for quantile spec limits( 3 )))"));
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2025 16:37:13 GMT</pubDate>
    <dc:creator>Jackie_</dc:creator>
    <dc:date>2025-11-14T16:37:13Z</dc:date>
    <item>
      <title>Apply K Sigma and extract specs</title>
      <link>https://community.jmp.com/t5/Discussions/Apply-K-Sigma-and-extract-specs/m-p/913411#M107322</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to calculate and extract specs using K sigma in process capability. However, something is off, and I am stuck. Is there a way to apply the K sigma and calculate the specs after the best model fitting and save those specs into a list?&lt;/P&gt;
&lt;P&gt;See the below pic:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jackie__1-1763138156480.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87058iC73F41304FEC296D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jackie__1-1763138156480.png" alt="Jackie__1-1763138156480.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the jsl to plot histograms and apply the fit, I would like to know how to code the steps for applying K Sigma and extracting LSL and USL for all the cols&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );

cols = {"PNP2", "NPN2", "PNP3", "IVP1", "PNP4"};

New Window( "",
	&amp;lt;&amp;lt;Type( "dialog" ),
	For Each( {mct, id}, cols,
		dis = Distribution(
			Uniform Scaling( 1 ),
			Stack( 1 ),
			Quantiles( 0 ),
			Summary Statistics( 0 ),
			Horizontal Layout( 1 ),
			Vertical( 0 ),
			Continuous Distribution( Column( Eval( mct ) ) )
					
			
		);
		
		dis &amp;lt;&amp;lt; Fit All;
			
		scb = Report( dis )[Outline Box( "Compare Distributions" ), Table Box( 1 ), String Col Box( 1 )];
		bestdist = scb[1];
		
				eval(parse("dis &amp;lt;&amp;lt;  Fit "||  bestdist |||"(Process Capability( Set sigma multiplier for quantile spec limits( 3 )))"));
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 16:37:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Apply-K-Sigma-and-extract-specs/m-p/913411#M107322</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2025-11-14T16:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Apply K Sigma and extract specs</title>
      <link>https://community.jmp.com/t5/Discussions/Apply-K-Sigma-and-extract-specs/m-p/913489#M107339</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");


dist = dt &amp;lt;&amp;lt; Distribution(
	Continuous Distribution(
		Column(:NPN1),
		Process Capability(0),
	)
);

dist &amp;lt;&amp;lt; Fit All;

scb = Report(dist)[Outline Box("Compare Distributions"), Table Box(1), String Col Box("Distribution")];
bestfit  = scb[1];


ob = Report(dist)[OutlineBox("? " || bestfit || " ?")];
// Show(ob &amp;lt;&amp;lt; get title);

(ob &amp;lt;&amp;lt; get scriptable object) &amp;lt;&amp;lt; Process Capability(Set sigma multiplier for quantile spec limits(5));

vals = ob[Outline Box("Process Summary"), Number Col Box(1)] &amp;lt;&amp;lt; get;
lsl = vals[1];
usl = vals[2];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Nov 2025 20:37:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Apply-K-Sigma-and-extract-specs/m-p/913489#M107339</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-11-14T20:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Apply K Sigma and extract specs</title>
      <link>https://community.jmp.com/t5/Discussions/Apply-K-Sigma-and-extract-specs/m-p/913679#M107359</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17878"&gt;@Jackie_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can do this without coding.&amp;nbsp; After you have fit all the distributions you can then go into the first columns fit, hold down control and select process capability, then select "Enter Sigma Multiplier" and click the "use calculated spec limits".&amp;nbsp; when you press okay holding control it will broadcast this to all fits.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shampton82_0-1763324768924.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/87178i6A29AF0781851893/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shampton82_0-1763324768924.png" alt="shampton82_0-1763324768924.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After that go to the Process Summary box of any of the fits and right click and select "Make Combined data table".&amp;nbsp; this will make a data table with all the LSL and USL.&amp;nbsp; You can delete the other parameters that come along with it to have just a spec limit table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Sun, 16 Nov 2025 20:30:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Apply-K-Sigma-and-extract-specs/m-p/913679#M107359</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2025-11-16T20:30:03Z</dc:date>
    </item>
  </channel>
</rss>

