cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
Creatur2
Level II

Calculate x sigma Spec Limits for non-normal distribution

Currently I need to calculate Non-normal distribution LSL and USL based on sigma value (eg. 4 sigma), to get the process capability. 
In another word, I need to select 'Z-score' and 'K:4' and hit the "Calculate Spec Limits" Button automatically in JSL script..
Does anyone know how to use this function in JSL script? Appreciate all kind helps!
Screenshot 2025-01-22 at 11.49.00.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Calculate x sigma Spec Limits for non-normal distribution

Hi @Creatur2 ,

 

Here's the script for performing the K sigma multiplier 'in script' - you can find details in the Scripting Index (see screenshot below).

 

Ben_BarrIngh_0-1737711402048.png

 

Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :Example ),
		Horizontal Layout( 1 ),
		Vertical( 0 ),
		Fit Normal 3 Mixture(
			Process Capability(
			Set Sigma Multiplier for Quantile Spec Limits(
			4),
				Show as Graph Reference Lines,
				Nonnormal Capability Method( "Z-Score"n )
			)
		),
	),
	SendToReport(
		Dispatch( {"Example"}, "1", ScaleBox,
			{Add Ref Line( 2.20020487561508, "Solid", "Blue", "LSL", 1 ),
			Add Ref Line( 4.81371452626116, "Solid", "Blue", "USL", 1 )}
		)
	)
);

 

 

“All models are wrong, but some are useful”

View solution in original post

4 REPLIES 4

Re: Calculate x sigma Spec Limits for non-normal distribution

Hi @Creatur2 ,

 

Could you provide an example dataset and a saved script from the platform onto the data table? I suspect this is from v15 of JMP that you are trying to create?

 

Thanks,

Ben

“All models are wrong, but some are useful”
Creatur2
Level II

Re: Calculate x sigma Spec Limits for non-normal distribution

Hi Ben,

 

Thanks for the reply! I am using JMP 17 Pro.

I attached the example file contains fake data and saved a distribution script to Data Table.

The problem is that, I want it to calculate K-sigma Limit automatically in the script, like the line of LSL and USL here should be something like 'Use Column 4-sigma Specs'. But saved script is actually recording the number but not the calculation steps.

Screenshot 2025-01-24 at 08.31.31.png

Re: Calculate x sigma Spec Limits for non-normal distribution

Hi @Creatur2 ,

 

Here's the script for performing the K sigma multiplier 'in script' - you can find details in the Scripting Index (see screenshot below).

 

Ben_BarrIngh_0-1737711402048.png

 

Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( :Example ),
		Horizontal Layout( 1 ),
		Vertical( 0 ),
		Fit Normal 3 Mixture(
			Process Capability(
			Set Sigma Multiplier for Quantile Spec Limits(
			4),
				Show as Graph Reference Lines,
				Nonnormal Capability Method( "Z-Score"n )
			)
		),
	),
	SendToReport(
		Dispatch( {"Example"}, "1", ScaleBox,
			{Add Ref Line( 2.20020487561508, "Solid", "Blue", "LSL", 1 ),
			Add Ref Line( 4.81371452626116, "Solid", "Blue", "USL", 1 )}
		)
	)
);

 

 

“All models are wrong, but some are useful”
Creatur2
Level II

Re: Calculate x sigma Spec Limits for non-normal distribution

Hi Ben,

 

Thank you so much! This problem have been confused me for at least 1 month. Really appreciate your help!!!

Recommended Articles