Atatched code and result are what I want to do with JSL on JMP 15, however this is hard-coded unfortunately. This does not work for other data with different distribution.
I want to know the way how to make the Process Capability analysis dynamically with best distribution in the followings:
- Y » Continuous Fit » Fit All
- Choose Top distribution (In this case, 'Top' is 'Weibull')
- Fitted 'Top' Distribution » Process Capability with spec limit (I am interested in Ppk value)
dt = Open( "$SAMPLE_DATA/Quality Control/Engine Temperature Sensor.jmp" );
lsl = 80;
target = 100;
usl = 120;
obj = dt << Distribution(
Continuous Distribution(
Column( :Y ),
Quantiles( 0 ),
Summary Statistics( 0 ),
Histogram( 0 ),
Vertical( 0 ),
Outlier Box Plot( 0 ),
Fit Normal( Show Fit( 0 ) ),
Fit Cauchy( Show Fit( 0 ) ),
Fit Lognormal( Show Fit( 0 ) ),
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( Process Capability( LSL( lsl ), Target( target ), USL( usl ) ) )
)
);