<?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 to add a new distribution formula to the distribution analysis in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-add-a-new-distribution-formula-to-the-distribution/m-p/846432#M102112</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with measurement data that should follow a specific distribution.&lt;/P&gt;&lt;P&gt;My goal is to create a Folded Normal and a Rayleigh to compare along with other distributions already programmed by default in JMP in order to see if my data follows the expected one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I fit all distributions with my data and look if the normal distribution fits the best according to the AICc. I would like to do the same with a Folded Normal and a Rayleigh law.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sylvain_MENA_0-1741254372794.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73600i3F5E8F9F367BD53F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sylvain_MENA_0-1741254372794.png" alt="Sylvain_MENA_0-1741254372794.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the corresponding code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	DistributionChart = Distribution(//Creation of the distribution chart
		Continuous Distribution(
			Column( dTempoClean:Ecart ),
			Quantiles( 0 ),
			Normal Quantile Plot( 1 ),
			Process Capability( 0 )	
		),
		Histograms Only
		SendToReport(
			Dispatch( {"Ecart mesurée"}, "1", ScaleBox,//Deviation data is studied
				{Add Ref Line(lst, "Solid", "Blue", "Tol. Inf.", 1 ),
				Add Ref Line(ust, "Solid", "Blue", "Tol. sup.", 1 ),
				Add Ref Line(0, "Solid", "Blue", "Objectif", 1 )}
			),
			Dispatch( {"Ecart mesurée"}, "", Picture Box( 4 ),
				{Set Summary Behavior( "Collapse" )}
			)
		)
	);

	DistributionChart &amp;lt;&amp;lt; Fit All;//Fit all default distributions 
	scb = Report(DistributionChart)[Outline Box("Compare Distributions"), Table Box(1), NumberColBox("AICc")];//Get AICc value
	scb1 = Report(DistributionChart)[Outline Box("Compare Distributions"), Table Box(1), StringColBox(1)];//Get best distribution name
	k=1;
	while (scb[k]==".",k++)
	bestdist = scb1[k];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can I add a Folded Normal and a Rayleigh distribution to the Fit All while getting all the corresponding statistical data (Mean, Standard Deviation, Cp, Cpk...) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help !&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 10:03:25 GMT</pubDate>
    <dc:creator>Sylvain_MENA</dc:creator>
    <dc:date>2025-03-06T10:03:25Z</dc:date>
    <item>
      <title>How to add a new distribution formula to the distribution analysis</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-a-new-distribution-formula-to-the-distribution/m-p/846432#M102112</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with measurement data that should follow a specific distribution.&lt;/P&gt;&lt;P&gt;My goal is to create a Folded Normal and a Rayleigh to compare along with other distributions already programmed by default in JMP in order to see if my data follows the expected one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I fit all distributions with my data and look if the normal distribution fits the best according to the AICc. I would like to do the same with a Folded Normal and a Rayleigh law.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sylvain_MENA_0-1741254372794.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73600i3F5E8F9F367BD53F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sylvain_MENA_0-1741254372794.png" alt="Sylvain_MENA_0-1741254372794.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the corresponding code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	DistributionChart = Distribution(//Creation of the distribution chart
		Continuous Distribution(
			Column( dTempoClean:Ecart ),
			Quantiles( 0 ),
			Normal Quantile Plot( 1 ),
			Process Capability( 0 )	
		),
		Histograms Only
		SendToReport(
			Dispatch( {"Ecart mesurée"}, "1", ScaleBox,//Deviation data is studied
				{Add Ref Line(lst, "Solid", "Blue", "Tol. Inf.", 1 ),
				Add Ref Line(ust, "Solid", "Blue", "Tol. sup.", 1 ),
				Add Ref Line(0, "Solid", "Blue", "Objectif", 1 )}
			),
			Dispatch( {"Ecart mesurée"}, "", Picture Box( 4 ),
				{Set Summary Behavior( "Collapse" )}
			)
		)
	);

	DistributionChart &amp;lt;&amp;lt; Fit All;//Fit all default distributions 
	scb = Report(DistributionChart)[Outline Box("Compare Distributions"), Table Box(1), NumberColBox("AICc")];//Get AICc value
	scb1 = Report(DistributionChart)[Outline Box("Compare Distributions"), Table Box(1), StringColBox(1)];//Get best distribution name
	k=1;
	while (scb[k]==".",k++)
	bestdist = scb1[k];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How can I add a Folded Normal and a Rayleigh distribution to the Fit All while getting all the corresponding statistical data (Mean, Standard Deviation, Cp, Cpk...) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 10:03:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-a-new-distribution-formula-to-the-distribution/m-p/846432#M102112</guid>
      <dc:creator>Sylvain_MENA</dc:creator>
      <dc:date>2025-03-06T10:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a new distribution formula to the distribution analysis</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-a-new-distribution-formula-to-the-distribution/m-p/848648#M102408</link>
      <description>&lt;P&gt;The folded normal and Rayleigh, are special cases of the Weibull distribution. Unless someone else knows a special trick, it is not possible to add additional distribution models to the menu.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 20:47:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-a-new-distribution-formula-to-the-distribution/m-p/848648#M102408</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2025-03-19T20:47:51Z</dc:date>
    </item>
  </channel>
</rss>

