<?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: Process Capability Platform: Is there a way to specify the distributions used for Best Fit? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683534#M86907</link>
    <description>&lt;P&gt;Manually adding Gamma to this Capability and saving the script gave me the required syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Process Measurements.jmp");
dt &amp;lt;&amp;lt;Process Capability(
	Process Variables( :Process 1 &amp;amp; Dist( Johnson ), :Process 1 &amp;amp; Dist( Gamma ) ),
	Moving Range Method(Average of Moving Ranges),
	Capability Box Plots(1),
	Individual Detail Reports(0),
	Capability Index Plot(1)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Oct 2023 18:23:43 GMT</pubDate>
    <dc:creator>mmarchandTSI</dc:creator>
    <dc:date>2023-10-03T18:23:43Z</dc:date>
    <item>
      <title>Process Capability Platform: Is there a way to specify the distributions used for Best Fit?</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683489#M86903</link>
      <description>&lt;P&gt;Hi. &amp;nbsp;I'm wondering if anyone knows a way to specify which distributions are used when performing Best Fit in the Process Capability platform? &amp;nbsp;For example, suppose a user wants to analyze a data set that they know is non-normal. &amp;nbsp;They would like to JMP to analyze using the distribution that fits the best, but they know they want it to only pick from Johnson or Gamma. &amp;nbsp;The script form of this would ideally look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Process Measurements.jmp");
dt &amp;lt;&amp;lt;Process Capability(
	Process Variables(:Process 1 &amp;amp; Dist(Johnson, Gamma)),
	Moving Range Method(Average of Moving Ranges),
	Capability Box Plots(1),
	Individual Detail Reports(0),
	Capability Index Plot(1)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where in the Process Variables(), I put "...&amp;amp; Dist(Johnson, Gamma)" instead of "Dist(BestFit)". &amp;nbsp;Of course, my code above does not work and the result shows Johnson only, but this hopefully gives you an idea of the kind of thing I'd like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running JMP Pro 17.2.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 17:23:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683489#M86903</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2023-10-03T17:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Process Capability Platform: Is there a way to specify the distributions used for Best Fit?</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683534#M86907</link>
      <description>&lt;P&gt;Manually adding Gamma to this Capability and saving the script gave me the required syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Process Measurements.jmp");
dt &amp;lt;&amp;lt;Process Capability(
	Process Variables( :Process 1 &amp;amp; Dist( Johnson ), :Process 1 &amp;amp; Dist( Gamma ) ),
	Moving Range Method(Average of Moving Ranges),
	Capability Box Plots(1),
	Individual Detail Reports(0),
	Capability Index Plot(1)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2023 18:23:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683534#M86907</guid>
      <dc:creator>mmarchandTSI</dc:creator>
      <dc:date>2023-10-03T18:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Process Capability Platform: Is there a way to specify the distributions used for Best Fit?</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683551#M86910</link>
      <description>&lt;P&gt;If you want to let JMP determine which distribution is the best fit, and then only run the Process Capability on the "best fit" distribution, the below script first runs a Distribution Platform and finds the best fit, and then runs the Process Capability on the best fit distribution.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
dt =
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

// Run 
dis = Distribution(invisible,
	Continuous Distribution(
		Column( :PNP3 ),
		Fit Normal( Show Fit( 0 ) ),
		Fit Cauchy( Show Fit( 0 ) ),
		Fit Student's t( Show Fit( 0 ) ),
		Fit Lognormal,
		Fit Exponential( Show Fit( 0 ) ),
		Fit Gamma( Show Fit( 0 ) ),
		Fit Johnson( Show Fit( 0 ) ),
		Fit SHASH( Show Fit( 0 ) ),
		Fit Normal 2 Mixture( Show Fit( 0 ) ),
		Fit Normal 3 Mixture( Show Fit( 0 ) ),
		Fit Weibull( Show Fit( 0 ) ),
		Process Capability( Use Column Property Specs )
	)
);
fitList = report(dis)["Compare Distributions", stringcolbox(1)]&amp;lt;&amp;lt;get;
If(contains(fitList,"Gamma") &amp;lt; contains(fitList,"Johnson Sb"), best = "Gamma", best = "Johnson");

report(dis) &amp;lt;&amp;lt; close window;

eval(substitute(expr(
dt &amp;lt;&amp;lt; Process Capability(
	Process Variables( :PNP3 &amp;amp; Dist( _best_ ) ), 
	Moving Range Method( Average of Moving Ranges ),
	Capability Index Plot( 1 )
);),
expr( _best_ ), parse(best))
);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Oct 2023 18:50:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683551#M86910</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-10-03T18:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Process Capability Platform: Is there a way to specify the distributions used for Best Fit?</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683569#M86911</link>
      <description>&lt;P&gt;Thanks Jim. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Great idea, but unfortunately that might not be an option for me. &amp;nbsp;My data sets are ~10k x 10k and each extra fit I run on each column just really increases the runtime. &amp;nbsp;Thus I'd hoped to just limit the search for a best fit to a few distributions and exclude the others. &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 22:48:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683569#M86911</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2023-10-03T22:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Process Capability Platform: Is there a way to specify the distributions used for Best Fit?</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683570#M86912</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/47878"&gt;@mmarchandTSI&lt;/a&gt;&amp;nbsp;. &amp;nbsp;I wasn't aware I could put the same column in the "Process Variables()" multiple times. &amp;nbsp;This could be the answer. &amp;nbsp;I still need to somehow evaluate which distribution is the best fit, but I believe&amp;nbsp;I can capture the AICc from each dist and use that to determine the best one. &amp;nbsp; Will be interesting to see if this is faster than just running a "best fit" using all the distributions.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 22:58:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683570#M86912</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2023-10-03T22:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Process Capability Platform: Is there a way to specify the distributions used for Best Fit?</title>
      <link>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683622#M86920</link>
      <description>&lt;P&gt;You can easily limit which distributions to fit when using Distribution platform&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Process Measurements.jmp");

dist = dt &amp;lt;&amp;lt; Distribution(
	Continuous Distribution(
		Column(:Process 1),
		Fit Gamma,
		Fit Johnson,
		Process Capability(0)
	),
	Invisible /*can use private in JMP17 I think*/
);

dists = Report(dist)[OutlineBox("Compare Distributions"), Table Box(1), String Col Box(1)] &amp;lt;&amp;lt; get;
dist_to_use = dists[1];
wait(0);
dist &amp;lt;&amp;lt; Close Window;

dist_expr = Parse("Dist("||Word(1, dist_to_use)||")");

Eval(EvalExpr(
	pc = dt &amp;lt;&amp;lt; Process Capability(
		Process Variables(:Process 1 &amp;amp; Expr(Name Expr(dist_expr))),
		Moving Range Method(Average of Moving Ranges),
		Capability Box Plots(1),
		Individual Detail Reports(0),
		Capability Index Plot(1)
	)
));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Oct 2023 06:47:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Process-Capability-Platform-Is-there-a-way-to-specify-the/m-p/683622#M86920</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-04T06:47:35Z</dc:date>
    </item>
  </channel>
</rss>

