For the latest version of JMP Help, visit JMP.com/help.


Publication date: 07/24/2024

Distribution Scripts

You can use JSL to send messages to specific fits in a Distribution report or set specification limits.

Send Messages to Specific Distribution Fits

The following message for a Distribution object is available only in JSL. The message creates an array of handles to the fitted distributions, so you can send commands to specific distributions:

dist_object << ( Fit Handle[n] << ...);

You can also get a reference to a fitted distribution directly if you send the Fit Distribution message to a Distribution object. This enables you to send commands to specific distributions:

fit_object = dist_object << Fit Distribution( distribution_name );
fit_object << ...;

Set Specification Limits in Distribution Scripts

You can set specification limits using the Spec Limits column property or using the Spec Limits argument in JSL:

dt = Open( "$SAMPLE_DATA/Cities.jmp" );
dt << Distribution(
	Column( :OZONE ),
	Fit Distribution(
		Weibull(
			Spec Limits( LSL( 0.075 ), Target( 0.15 ), USL( 0.25 ) )
		)
	)
);

To set specification limits using K Sigma normal probabilities, use the Set Spec Limits for KSigma message. The first argument to the message is the value of K Sigma. By default, the limits are two-sided. To make them one-sided, use the optional sided argument. Specify sided=1 for LSL only and sided=2 for USL only.

dt = Open( "$SAMPLE_DATA/Cities.jmp" );
obj = Distribution( Column( :CO ) );
obj << Fit Distribution(
	LogNormal( Set Spec Limits for KSigma( 3 ) )
);
Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).