Capability
Process Capability
Example 1
Summary: Visualizes process capability analysis for a cheese production process, using the Moving Range method and displaying goal plots and capability index plots.
Code:
// Process Capability
// Open data table
dt = Open("data_table.jmp");
// Process Capability
Process Capability(
Process Variables(
:pH, :Salt Concentration,
:Moisture Content
),
Grouping( :Cheese Type ),
Moving Range Method(
Average of Moving Ranges
),
Goal Plot( 1 ),
Capability Index Plot( 1 ),
Process Performance Plot( 0 )
);
Code Explanation:
- Open table.
- Set process variables.
- Define grouping variable.
- Use moving range method.
- Enable goal plot.
- Enable capability index plot.
- Disable process performance plot.
Example 2
Summary: Visualizes process capability analysis for OZONE, CO, SO2, and NO variables by defining spec limits and generating a goal plot with shade levels.
Code:
// Process Capability
// Open data table
dt = Open("data_table.jmp");
// Process Capability
Process Capability(
Process Variables(
:OZONE, :CO, :SO2, :NO
),
Spec Limits(
OZONE(
LSL( 0 ),
Target( 0.05 ),
USL( 0.1 )
),
CO(
LSL( 5 ),
Target( 10 ),
USL( 20 )
),
SO2(
LSL( 0 ),
Target( 0.03 ),
USL( 0.08 )
),
NO(
LSL( 0 ),
Target( 0.025 ),
USL( 0.6 )
)
),
Goal Plot( 1, Shade Levels( 1 ) )
);
Code Explanation:
- Open table.
- Set process variables.
- Define OZONE specs.
- Define CO specs.
- Define SO2 specs.
- Define NO specs.
- Generate goal plot.
- Shade goal plot levels.
Example 3
Summary: Performs a Process Capability analysis on multiple processes, generating goal plots and capability index plots to evaluate the performance of each process. It also compares distributions for Process 7.
Code:
// Process Capability
// Open data table
dt = Open("data_table.jmp");
// Process Capability
Process Capability(
Process Variables(
:Process 1 & Dist( Lognormal ),
:Process 2 & Dist( Lognormal ),
:Process 3 & Dist( Weibull ),
:Process 4 & Dist( Lognormal ),
:Process 5 & Dist( Weibull ),
:Process 6 & Dist( Johnson ),
:Process 7
),
Spec Limits(
Process 1(
LSL( 3 ),
Target( 10 ),
USL( 25 )
),
Process 2(
LSL( 5 ),
Target( 10 ),
USL( 17 )
),
Process 3(
LSL( 3 ),
Target( 10 ),
USL( 25 )
),
Process 4(
LSL( 3 ),
Target( 10 ),
USL( 25 )
),
Process 5(
LSL( 3 ),
Target( 10 ),
USL( 25 )
),
Process 6(
LSL( 3 ),
Target( 10 ),
USL( 25 )
),
Process 7(
LSL( 3 ),
Target( 10 ),
USL( 25 )
)
),
Goal Plot(
1,
Label Overall Sigma Points( 1 )
),
Capability Index Plot( 1 ),
{:Process 7 <<
Process Capability Analysis(
Compare Distributions(
1, <<Fit Normal, <<Fit Gamma,
<<Fit Johnson,
<<Fit Lognormal,
<<Fit Weibull
)
)},
SendToReport(
Dispatch( {"Goal Plot"},
"Process Capability Goal Plot",
FrameBox,
{Frame Size( 353, 208 )}
),
Dispatch(
{"Capability Box Plots"},
"Capability Box Plots Graph",
FrameBox,
{Frame Size( 407, 53 )}
),
Dispatch(
{"Capability Index Plot"},
"Process Capability Index Plot",
FrameBox,
{Frame Size( 365, 284 )}
)
)
);
Code Explanation:
- Open table.
- Define process variables.
- Set spec limits.
- Create goal plot.
- Generate capability index plot.
- Analyze Process 7.
- Compare distributions.
- Adjust goal plot size.
- Resize capability box plots.
- Modify capability index plot size.
Example 4
Summary: Opens a data table, sets process variables for Process Capability analysis, configures spec limits, and generates capability box plots to visualize the performance of multiple variables.
Code:
// Process Capability
// Open data table
dt = Open("data_table.jmp");
// Process Capability
Process Capability(
Process Variables(
:NPN1, :PNP1, :PNP2, :NPN2, :PNP3,
:IVP1, :PNP4, :NPN3, :IVP2, :NPN4,
:SIT1, :INM1, :INM2, :VPM3, :SPM1,
:NPN5, :EP2, :ZD6, :PBA, :PLG,
:CAP, :PBA3, :PLG2, :PNP5, :NPN6,
:PNP7, :NPN7, :PNP8, :IVP3, :IVP4,
:IVP5, :IVP6, :PNP9, :NPN8, :NPN9,
:IVP7, :NPN10, :N_1, :PBA1, :WPR1,
:B10, :PLY10, :VBE210, :VTN210,
:VTP210, :SIT2, :SIT3, :INV2,
:INV3, :INV4, :INV5, :FST1, :FST2,
:RES1, :RES2, :PNM1, :PPM1, :FNM1,
:FPM1, :FST3, :FST4, :RES3, :RES4,
:A1, :B1, :A2N, :A2P, :A2P1,
:IVP8, :IVP9, :DE_H1, :NF_H1,
:ESM1, :ESM2, :ESP1, :YFU1, :PBA3,
:PBB1, :LYA1, :LYB1, :DEM1, :DEP1,
:NFM1, :PLY1, :VDP1, :VDP2, :SNW1,
:RSP2, :PLY2, :RSP1, :VDP3, :PBL1,
:PLG1, :VDP4, :SPW1, :VIA1, :INM3,
:VPM5, :INM4, :VPM7, :M1_M1,
:M2_M2, :P1_P1, :E2A1, :E2B1,
:NPN11, :IVP10, :PNP10, :INM5,
:VPM8, :INM6, :VPM10, :N2A1,
:N2B1, :NM_L1, :P2A1, :P2B1,
:PM_L1
),
Spec Limits Dialog(
"No (skip columns with no spec limits)"
),
Capability Box Plots( 1 )
);
Code Explanation:
- Open table.
- Set process variables.
- Configure spec limits.
- Generate capability box plots.
Example 5
Summary: Performs a Process Capability analysis on three variables (Weight, Thickness, and Purity) with different distributions (Lognormal, Johnson, Weibull), generating individual detail reports, capability index plots, and comparing distribution fits.
Code:
// Process Capability
// Open data table
dt = Open("data_table.jmp");
// Process Capability
Process Capability(
Process Variables(
:Weight & Dist( Best Fit ),
:Thickness & Dist( Best Fit ),
:Purity & Dist( Best Fit )
),
Spec Limits(
Weight(
LSL( 148 ),
Target( 150 ),
USL( 152 )
),
Thickness(
LSL( 4.8 ),
Target( 5 ),
USL( 5.2 )
),
Purity(
LSL( 99.5 ),
Target( . ),
USL( . )
)
),
Individual Detail Reports( 1 ),
Capability Index Plot( 1 ),
{(:Weight & Dist( Lognormal )) <<
Process Capability Analysis(
Compare Distributions(
1, <<Fit Normal, <<Fit Gamma,
<<Fit Johnson,
<<Fit Lognormal,
<<Fit Weibull
)
), (:Thickness & Dist( Johnson )) <<
Process Capability Analysis(
Compare Distributions(
1, <<Fit Normal, <<Fit Gamma,
<<Fit Johnson,
<<Fit Lognormal,
<<Fit Weibull
)
), (:Purity & Dist( Weibull )) <<
Process Capability Analysis(
Compare Distributions(
1, <<Fit Normal, <<Fit Gamma,
<<Fit Johnson,
<<Fit Lognormal,
<<Fit Weibull
)
)}
);
Code Explanation:
- Open table.
- Define process variables.
- Set specification limits.
- Generate individual detail reports.
- Create capability index plot.
- Analyze weight distribution.
- Compare weight distributions.
- Analyze thickness distribution.
- Compare thickness distributions.
- Analyze purity distribution.
- Compare purity distributions.
Example 6
Summary: Performs a Process Capability analysis on variables M1 to M7, utilizing Johnson distributions and specifying LSL, Target, and USL limits for each variable. The script generates a Capability Index Plot.
Code:
// Process Capability - All Johnson
Process Capability(
Process Variables(
:M1 & Dist( Johnson ),
:M2 & Dist( Johnson ),
:M3 & Dist( Johnson ),
:M4 & Dist( Johnson ),
:M5 & Dist( Johnson ),
:M6 & Dist( Johnson ),
:M7 & Dist( Johnson )
),
Spec Limits(
M1(
LSL( 3 ),
Target( 10 ),
USL( 25 )
),
M2(
LSL( 13.4 ),
Target( 13.8 ),
USL( 14.3 )
),
M3(
LSL( 0.05 ),
Target( 1 ),
USL( 2.6 )
),
M4(
LSL( . ),
Target( 2 ),
USL( 25 )
),
M5(
LSL( . ),
Target( 1 ),
USL( 8 )
),
M6(
LSL( 0.5 ),
Target( 0.7 ),
USL( 1.35 )
),
M7(
LSL( 5 ),
Target( 10 ),
USL( 15 )
)
),
Capability Index Plot( 1 )
);
Code Explanation:
- Run Process Capability analysis.
- Analyze variables M1 to M7.
- Use Johnson distribution for each variable.
- Set LSL, Target, and USL for M1.
- Set LSL, Target, and USL for M2.
- Set LSL, Target, and USL for M3.
- Set LSL, Target, and USL for M4.
- Set LSL, Target, and USL for M5.
- Set LSL, Target, and USL for M6.
- Set LSL, Target, and USL for M7.
- Generate Capability Index Plot.
Example 7
Summary: Generates a Process Capability analysis for the M1 process variable, comparing its distribution to Gamma and Johnson fits, and producing individual detail reports with histogram scales and frame sizes adjusted.
Code:
// Process Capability - M1 Compare Distributions
Process Capability(
Process Variables(
:M1 & Dist( Gamma )
),
Spec Limits(
M1(
LSL( 3 ),
Target( 10 ),
USL( 25 )
)
),
Individual Detail Reports( 1 ),
Capability Box Plots( 0 ),
Goal Plot( 0 ),
Capability Index Plot( 0 ),
{(:M1 & Dist( Gamma )) <<
Process Capability Analysis(
Compare Distributions(
1,
Fit Gamma( 1 ),
Fit Johnson( 1 )
)
)},
SendToReport(
Dispatch(
{"Individual Detail Reports",
"M1(Gamma Distribution) Capability",
"Compare Distributions",
"Histogram"}, "2", ScaleBox,
{Max( 37.7023750488451 )}
),
Dispatch(
{"Individual Detail Reports",
"M1(Gamma Distribution) Capability",
"Compare Distributions",
"Histogram"}, "3", ScaleBox,
{Max( 0.15080950019538 )}
),
Dispatch(
{"Individual Detail Reports",
"M1(Gamma Distribution) Capability",
"Compare Distributions",
"Histogram"},
"Process Capability Analysis Histogram",
FrameBox,
{Frame Size( 320, 19 )}
)
)
);
Code Explanation:
- Open Process Capability dialog.
- Set process variable M1.
- Define LSL, Target, USL for M1.
- Enable individual detail reports.
- Disable capability box plots.
- Disable goal plot.
- Disable capability index plot.
- Perform process capability analysis on M1.
- Compare M1 distribution with Gamma and Johnson fits.
- Adjust histogram scales and frame size in reports.
Example 8
Summary: This JSL script launches Process Capability analysis to evaluate the performance of two process variables, P1 and P2, with respective specification limits. The script generates a Goal Plot and Capability Index Plot for visual inspection.
Code:
// Process Capability
Process Capability(
Process Variables( :P1, :P2 ),
Spec Limits(
P1(
LSL( -0.0000137 ),
Target( -0.00001 ),
USL( -0.0000075 )
),
P2(
LSL( 79 ),
Target( 103 ),
USL( 128 )
)
),
Goal Plot( 1 ),
Capability Index Plot( 1 )
);
Code Explanation:
- Launch Process Capability.
- Define process variables: P1, P2.
- Set LSL for P1: -0.0000137.
- Set target for P1: -0.00001.
- Set USL for P1: -0.0000075.
- Set LSL for P2: 79.
- Set target for P2: 103.
- Set USL for P2: 128.
- Generate Goal Plot.
- Generate Capability Index Plot.
Example 9
Summary: Performs a categorical analysis with crosstab transposed and tests for response homogeneity using the Process Capability platform in JMP.
Code:
// Process Capability
Process Capability(
Process Variables(
:NPN1, :PNP1, :PNP2, :NPN2, :PNP3,
:IVP1, :PNP4, :NPN3, :IVP2, :NPN4,
:SIT1, :INM1, :INM2, :VPM3, :SPM1,
:NPN5, :EP2, :ZD6, :PBA, :PLG,
:CAP, :PBA 2, :PLG 2, :PNP5,
:NPN6, :PNP7, :NPN7, :PNP8, :IVP3,
:IVP4, :IVP5, :IVP6, :PNP9, :NPN8,
:NPN9, :IVP7, :NPN10, :N_1, :PBA1,
:WPR1, :B10, :PLY10, :VBE210,
:VTN210, :VTP210, :SIT2, :SIT3,
:INV2, :INV3, :INV4, :INV5, :FST1,
:FST2, :RES1, :RES2, :PNM1, :PPM1,
:FNM1, :FPM1, :FST3, :FST4, :RES3,
:RES4, :A1, :B1, :A2N, :A2P,
:A2P1, :IVP8, :IVP9, :DE_H1,
:NF_H1, :ESM1, :ESM2, :ESP1,
:YFU1, :PBA2, :PBB1, :LYA1, :LYB1,
:DEM1, :DEP1, :NFM1, :PLY1, :VDP1,
:VDP2, :SNW1, :RSP2, :PLY2, :RSP1,
:VDP3, :PBL1, :PLG1, :VDP4, :SPW1,
:VIA1, :INM3, :VPM5, :INM4, :VPM7,
:M1_M1, :M2_M2, :P1_P1, :E2A1,
:E2B1, :NPN11, :IVP10, :PNP10,
:INM5, :VPM8, :INM6, :VPM10,
:N2A1, :N2B1, :NM_L1, :P2A1,
:P2B1, :PM_L1
),
Spec Limits Dialog(
"No (skip columns with no spec limits)"
),
Capability Box Plots( 1 )
);
Code Explanation:
- Launch Process Capability.
- Define process variables.
- Skip columns without specs.
- Enable capability box plots.
Example 10
Summary: Generates a Process Capability report for a manufacturing process, analyzing variables such as Thickness, Roughness, Current, Time, Flow Rate 1, Flow Rate 2, Temp, and Flow Rate 3. The script defines spec limits, creates individual detail reports, and includes AIAG (Ppk) labeling.
Code:
// Process Capability
Process Capability(
Process Variables(
:Thickness, :Roughness, :Current,
:Time, :Flow Rate 3, :Flow Rate 2,
:Temp, :Flow Rate 1
),
Spec Limits(
Thickness(
LSL( 190 ),
Target( 196 ),
USL( 202 )
),
Roughness(
LSL( 80 ),
Target( 84 ),
USL( 90 )
),
Current(
LSL( 50 ),
Target( 65 ),
USL( 80 )
),
Time(
LSL( 0 ),
Target( 1 ),
USL( 3 )
),
Flow Rate 1(
LSL( 13 ),
Target( 16 ),
USL( 19 )
),
Flow Rate 2(
LSL( 2 ),
Target( 4 ),
USL( 6 )
),
Temp(
LSL( 5 ),
Target( 11 ),
USL( 17 )
),
Flow Rate 3(
LSL( 5 ),
Target( 11 ),
USL( 17 )
)
),
Individual Detail Reports( 1 ),
"AIAG (Ppk) Labeling"n( 0 ),
Goal Plot(
1,
Shade Levels( 1 ),
Label Overall Sigma Points( 1 )
),
SendToReport(
Dispatch( {},
"Individual Detail Reports",
OutlineBox,
{Close( 1 )}
)
)
);
Code Explanation:
- Open Process Capability dialog.
- Set process variables.
- Define spec limits for Thickness.
- Define spec limits for Roughness.
- Define spec limits for Current.
- Define spec limits for Time.
- Define spec limits for Flow Rate 1.
- Define spec limits for Flow Rate 2.
- Define spec limits for Temp.
- Define spec limits for Flow Rate 3.
Example 11
Summary: Performs process capability analysis for multiple variables, including OZONE, CO, SO2, and NO, with goal plot shading and pin annotations.
Code:
dt1 = Open("data_table.jmp");
obj = dt1 << Process Capability(
Process Variables( :OZONE, :CO, :SO2, :NO ),
Spec Limits( Import Spec Limits( dt2 ) ),
Goal Plot( 1, Shade Levels( 1 ) ),
Process Performance Plot( 0 ),
SendToReport(
Dispatch( {"Goal Plot"}, "Process Capability Goal Plot", FrameBox,
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 6 ),
Index Row( 6 ),
UniqueID( 835403958 ),
FoundPt( {379, 192} ),
Origin( {0.1272, 0.42} ),
Tag Line( 1 )
)
),
Dispatch( {}, "Capability Box Plots", OutlineBox, {Close( 1 )} ),
Dispatch( {"Capability Index Plot"}, "Process Capability Index Plot", FrameBox,
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 6 ),
Index Row( 6 ),
UniqueID( 835461526 ),
FoundPt( {242, 458} ),
Origin( {2.02, 0.465} ),
Tag Line( 1 )
)
)
)
);
Code Explanation:
- Open data table;
- Create process capability object.
- Set process variables: OZONE, CO, SO2, NO.
- Import spec limits from another dataset.
- Enable goal plot with shading.
- Disable process performance plot.
- Add pin annotation to goal plot.
- Close capability box plots.
- Add pin annotation to capability index plot.
Example 12
Summary: Performs process capability analysis with customized spec limits and plots, generating a new window for visualizing the results.
Code:
dt1 = Open("data_table.jmp");
dt2 = Open("data_table.jmp");
obj = dt1 << Process Capability(
Process Variables( :OZONE, :CO, :SO2, :NO ),
Spec Limits( Import Spec Limits( dt2 ) ),
Goal Plot( 1, Shade Levels( 1 ) ),
Process Performance Plot( 0 ),
SendToReport(
Dispatch( {"Goal Plot"}, "Process Capability Goal Plot", FrameBox,
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 6 ),
Index Row( 6 ),
UniqueID( 835403958 ),
FoundPt( {379, 192} ),
Origin( {0.1272, 0.42} ),
Tag Line( 1 )
)
),
Dispatch( {}, "Capability Box Plots", OutlineBox, {Close( 1 )} ),
Dispatch( {"Capability Index Plot"}, "Process Capability Index Plot", FrameBox,
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 6 ),
Index Row( 6 ),
UniqueID( 835461526 ),
FoundPt( {242, 458} ),
Origin( {2.02, 0.465} ),
Tag Line( 1 )
)
)
)
);
New Window( "pictures", H List Box( Tab Page Box( "Picture", obj << Get Picture() ) ) );
Code Explanation:
- Open data table.
- Open data table.
- Create process capability analysis.
- Set process variables: OZONE, CO, SO2, NO.
- Import spec limits from CitySpecLimits.jmp.
- Enable goal plot with shading.
- Disable process performance plot.
- Add pin annotation to goal plot.
- Close capability box plots.
- Add pin annotation to capability index plot.
- Create new window for pictures.
- Add tab page with picture of analysis.
Example 13
Summary: Performs process capability analysis for multiple variables, including OZONE, CO, SO2, and NO, by importing spec limits from CitySpecLimits.jmp and generating goal plots with shading.
Code:
dt1 = Open("data_table.jmp");
dt2 = Open("data_table.jmp");
dt1 << Process Capability(
Process Variables( :OZONE, :CO, :SO2, :NO ),
Spec Limits( Import Spec Limits( dt2 ) ),
Goal Plot( 1, Shade Levels( 1 ) ),
Process Performance Plot( 0 ),
SendToReport(
Dispatch( {"Goal Plot"}, "Process Capability Goal Plot", FrameBox,
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 6 ),
Index Row( 6 ),
UniqueID( 835403958 ),
FoundPt( {379, 192} ),
Origin( {0.1272, 0.42} ),
Tag Line( 1 )
)
),
Dispatch( {}, "Capability Box Plots", OutlineBox, {Close( 1 )} ),
Dispatch( {"Capability Index Plot"}, "Process Capability Index Plot", FrameBox,
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 6 ),
Index Row( 6 ),
UniqueID( 835461526 ),
FoundPt( {242, 458} ),
Origin( {2.02, 0.465} ),
Tag Line( 1 )
)
)
)
);
Code Explanation:
- Open data table;
- Open data table;
- Perform process capability analysis.
- Set process variables: OZONE, CO, SO2, NO.
- Import spec limits from CitySpecLimits.jmp.
- Enable goal plot with shading.
- Disable process performance plot.
- Send report updates.
- Add pin annotation to goal plot.
- Close capability box plots.
Example 14
Summary: Performs process capability analysis for multiple variables, skipping columns without spec limits and displaying box plots.
Code:
Open("data_table.jmp");
Process Capability(
Process Variables(
:NPN1, :PNP1, :PNP2, :NPN2, :PNP3, :IVP1, :PNP4, :NPN3, :IVP2, :NPN4, :SIT1, :INM1, :INM2, :VPM3, :SPM1, :NPN5, :EP2, :ZD6, :PBA,
:PLG, :CAP, :PBA 2, :PLG 2, :PNP5, :NPN6, :PNP7, :NPN7, :PNP8, :IVP3, :IVP4, :IVP5, :IVP6, :PNP9, :NPN8, :NPN9, :IVP7, :NPN10, :N_1,
:PBA1, :WPR1, :B10, :PLY10, :VBE210, :VTN210, :VTP210, :SIT2, :SIT3, :INV2, :INV3, :INV4, :INV5, :FST1, :FST2, :RES1, :RES2, :PNM1,
:PPM1, :FNM1, :FPM1, :FST3, :FST4, :RES3, :RES4, :A1, :B1, :A2N, :A2P, :A2P1, :IVP8, :IVP9, :DE_H1, :NF_H1, :ESM1, :ESM2, :ESP1,
:YFU1, :PBA2, :PBB1, :LYA1, :LYB1, :DEM1, :DEP1, :NFM1, :PLY1, :VDP1, :VDP2, :SNW1, :RSP2, :PLY2, :RSP1, :VDP3, :PBL1, :PLG1, :VDP4,
:SPW1, :VIA1, :INM3, :VPM5, :INM4, :VPM7, :M1_M1, :M2_M2, :P1_P1, :E2A1, :E2B1, :NPN11, :IVP10, :PNP10, :INM5, :VPM8, :INM6, :VPM10,
:N2A1, :N2B1, :NM_L1, :P2A1, :P2B1, :PM_L1
),
Spec Limits Dialog( "No (skip columns with no spec limits)" ),
Capability Box Plots( 1 )
);
Code Explanation:
- Open data table;
- Launch Process Capability platform.
- Select process variables.
- Skip columns without spec limits.
- Display capability box plots.
Example 15
Summary: Performs process capability analysis for OZONE, CO, SO2, and NO variables by importing spec limits from a secondary data table and generating a goal plot with shade levels.
Code:
dt1 = Open("data_table.jmp");
dt2 = Open("data_table.jmp");
dt1 << Process Capability(
Process Variables( :OZONE, :CO, :SO2, :NO ),
Spec Limits( Import Spec Limits( dt2 ) ),
Goal Plot( 1, Shade Levels( 1 ) )
);
Code Explanation:
- Open data table;
- Open data table;
- Launch Process Capability.
- Select OZONE, CO, SO2, NO.
- Import spec limits from dt2.
- Enable Goal Plot.
- Set Goal Plot shade levels to 1.
Example 16
Summary: Runs the process capability analysis for a specific result variable, with sub-lot categorization and within subgroup variation calculation.
Code:
dt = Open("data_table.jmp");
obj = dt << Process Capability(
Process Variables( :N ),
Spec Limits( :N( LSL( 5 ), Target( 10 ), USL( 15 ) ) ),
Moving Range Method( Average of Moving Ranges ),
Capability Box Plots( 1 ),
Individual Detail Reports( 0 ),
Goal Plot( 1 ),
Capability Index Plot( 1 ),
Process Performance Plot( 0 )
);
dt << select all rows << exclude << hide;
obj << Within Sigma Normalized Box Plots( 1 );
obj << Overall Sigma Normalized Box Plots( 1 );
Close( dt, no save );
dt = New Table( "control_chart_part2 (5)",
Add Rows( 18 ),
New Column( "Sub-lot",
Character( 1 ),
"Nominal",
Set Values( {"A", "A", "A", "B", "B", "B", "C", "C", "C", "D", "D", "D", "E", "E", "E", "F", "F", "F"} ),
Set Display Width( 51 )
),
New Column( "Result",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Property( "Spec Limits", {LSL( 0.5 ), USL( 1.1 ), Target( 1 ), Show Limits( 0 )} ),
Set Selected,
Set Values( [0.9, 1.1, 1, 1.2, 1, 0.7, 1, 0.8, 1.1, ., ., ., ., ., ., ., ., .] ),
Set Display Width( 48 )
)
);
obj = dt << Process Capability(
Process Variables( :Result[:"Sub-lot"n] ),
Within Subgroup Variation( Average of Ranges ),
Individual Detail Reports( 1 ),
Capability Box Plots( 1 ),
Goal Plot( 1 ),
Capability Index Plot( 1 ),
Process Performance Plot( 0 )
);
rpt = obj << report;
Code Explanation:
- Open data table;
- Create process capability object.
- Select all rows, exclude, and hide.
- Add Within Sigma Normalized Box Plots.
- Add Overall Sigma Normalized Box Plots.
- Close table without saving.
- Create new table "control_chart_part2 (5)".
- Add columns "Sub-lot" and "Result".
- Create process capability object for new table.
- Generate report from process capability object.
Example 17
Summary: Performs process capability analysis for variable N, utilizing the Moving Range Method and generating box plots to evaluate performance.
Code:
dt = Open("data_table.jmp");
obj = dt << Process Capability(
Process Variables( :N ),
Spec Limits( :N( LSL( 5 ), Target( 10 ), USL( 15 ) ) ),
Moving Range Method( Average of Moving Ranges ),
Capability Box Plots( 1 ),
Individual Detail Reports( 0 ),
Goal Plot( 1 ),
Capability Index Plot( 1 ),
Process Performance Plot( 0 )
);
dt << select all rows << exclude << hide;
obj << Within Sigma Normalized Box Plots( 1 );
obj << Overall Sigma Normalized Box Plots( 1 );
Code Explanation:
- Open data table;
- Perform process capability analysis.
- Set process variable to "N".
- Define LSL, target, and USL for "N".
- Use average of moving ranges method.
- Enable capability box plots.
- Disable individual detail reports.
- Enable goal plot.
- Enable capability index plot.
- Hide excluded rows.
Example 18
Summary: Runs a Process Capability analysis for the 'Receive Application' process variable, generating an Interactive Capability Plot with specified LSL, Target, and USL values.
Code:
dt = Open("data_table.jmp");
obj = dt << Process Capability(
Process Variables( :Receive Application ),
Spec Limits( :Receive Application( LSL( 9 ), Target( 11 ), USL( 13 ) ) ),
Moving Range Method( Average of Moving Ranges ),
Individual Detail Reports( 1 ),
{:Receive Application << Process Capability Analysis(
Interactive Capability Plot(
1,
New Values( LSL( 9 ), Target( 11 ), USL( 13 ), Mean( 13.0169243708232 ), Overall Sigma( 0.885132272382785 ) )
)
)}
);
rpt = obj << report;
actAxis = rpt["Interactive Capability Plot", AxisBox( 2 )];
actAxisMin = actAxis << get min;
actAxisMax = actAxis << get max;
Code Explanation:
- Open data table;
- Perform Process Capability analysis.
- Set process variable to "Receive Application".
- Define LSL, Target, and USL for "Receive Application".
- Use Average of Moving Ranges method.
- Enable Individual Detail Reports.
- Generate Interactive Capability Plot.
- Set new values for plot.
- Retrieve report object.
- Get minimum and maximum values of AxisBox(2).
Example 19
Summary: Runs a Process Capability analysis to evaluate the quality of 'skull length' data across different species, generating individual detail reports and capability box plots, while also running a Process Screening analysis with XBar and R charts.
Code:
dt = Open("data_table.jmp");
obj = dt << Process Capability(
Process Variables( :skull length[:species] ),
Spec Limits( skull length( LSL( 355 ), Target( 370 ), USL( 400 ) ) ),
Within Subgroup Variation( "Average of Ranges" ),
Individual Detail Reports( 1 ),
Capability Box Plots( 1 ),
Goal Plot( 1 )
);
dtnew = obj << Save Spec Limits to New Table;
dtGoalSum = obj << Make Goal Plot Summary Table;
obj2 = dt << Process Screening(
Y( :skull length ),
Control Chart Type( "XBar and R" ),
Subgroup( :species ),
Goal Plot( 1 ),
Use Limits Table( 1, Data Table( dtnew ), Process Variables( :Process ), LSL( :LSL ), USL( :USL ), Target( :Target ), Go )
);
dtsum = obj2 << Save Summary Table;
Close( dtnew, No save );
Close( dtGoalSum, No save );
Code Explanation:
- Open data table;
- Run Process Capability analysis.
- Set process variables.
- Define spec limits.
- Use average of ranges.
- Generate individual detail reports.
- Create capability box plots.
- Produce goal plot.
- Save spec limits to new table.
- Create goal plot summary table.
- Run Process Screening analysis.
- Set response variable.
- Choose XBar and R chart.
- Define subgroups.
- Generate goal plot.
- Use limits from new table.
- Save summary table.
- Close new table without saving.
- Close goal plot summary table without saving.
Example 20
Summary: Performs process capability analysis to evaluate the quality of skull length measurements across different species, generating individual detail reports and capability box plots.
Code:
dt = Open("data_table.jmp");
obj = dt << Process Capability(
Process Variables( :skull length[:species] ),
Spec Limits( skull length( LSL( 355 ), Target( 370 ), USL( 400 ) ) ),
Within Subgroup Variation( "Average of Ranges" ),
Individual Detail Reports( 1 ),
Capability Box Plots( 1 ),
Goal Plot( 1 )
);
dtnew = obj << Save Spec Limits to New Table;
dtGoalSum = obj << Make Goal Plot Summary Table;
obj2 = dt << Process Screening(
Y( :skull length ),
Control Chart Type( "XBar and R" ),
Subgroup( :species ),
Goal Plot( 1 ),
Use Limits Table( 1, Data Table( dtnew ), Process Variables( :Process ), LSL( :LSL ), USL( :USL ), Target( :Target ), Go )
);
dtsum = obj2 << Save Summary Table;
Code Explanation:
- Open data table;
- Perform process capability analysis.
- Set process variables.
- Define specification limits.
- Use average of ranges.
- Generate individual detail reports.
- Create capability box plots.
- Generate goal plot.
- Save spec limits to new table.
- Create goal plot summary table.
- Perform process screening.
- Set Y variable.
- Choose XBar and R chart.
- Set subgroup variable.
- Generate goal plot.
- Use limits from saved table.
- Save summary table.
Capability using Distribution
Example 1
Summary: Generates a distribution analysis with histograms for various columns in the data table, arranging them in 5 rows and displaying only histograms.
Code:
// Distributions histogram only
// Open data table
dt = Open("data_table.jmp");
// Distributions histogram only
Distribution(
Arrange in Rows( 5 ),
Nominal Distribution(
Column( :unit ID ),
Count Axis( 1 )
),
Nominal Distribution(
Column( :Lot ),
Count Axis( 1 )
),
Nominal Distribution(
Column( :Part ),
Count Axis( 1 )
),
Nominal Distribution(
Column( :Ship event ),
Count Axis( 1 )
),
Nominal Distribution(
Column( :surface quality ),
Count Axis( 1 )
),
Nominal Distribution(
Column( :color ),
Count Axis( 1 )
),
Continuous Distribution(
Column( :X ),
Count Axis( 1 ),
Process Capability( 0 )
),
Continuous Distribution(
Column( :Y ),
Count Axis( 1 ),
Process Capability( 0 )
),
Continuous Distribution(
Column( :Z ),
Count Axis( 1 ),
Process Capability( 0 )
),
Continuous Distribution(
Column( :Radius ),
Count Axis( 1 ),
Process Capability( 0 )
),
Continuous Distribution(
Column( :Center ),
Count Axis( 1 ),
Process Capability( 0 )
),
Continuous Distribution(
Column( :Gap ),
Count Axis( 1 ),
Process Capability( 0 )
),
Continuous Distribution(
Column( :Slot Width ),
Count Axis( 1 ),
Process Capability( 0 )
),
Continuous Distribution(
Column( :Slot Length ),
Count Axis( 1 )
),
Continuous Distribution(
Column( :Slot Depth ),
Count Axis( 1 )
),
Histograms Only,
SendToReport(
Dispatch( {}, "unit ID",
OutlineBox,
{Close( 1 )}
)
)
);
Code Explanation:
- Open data table.
- Create distribution analysis.
- Arrange in 5 rows.
- Analyze unit ID distribution.
- Analyze Lot distribution.
- Analyze Part distribution.
- Analyze Ship event distribution.
- Analyze surface quality distribution.
- Analyze color distribution.
- Analyze X distribution.
- Analyze Y distribution.
- Analyze Z distribution.
- Analyze Radius distribution.
- Analyze Center distribution.
- Analyze Gap distribution.
- Analyze Slot Width distribution.
- Analyze Slot Length distribution.
- Analyze Slot Depth distribution.
- Display histograms only.
- Close unit ID outline.
Example 2
Summary: Visualizes the distribution of Actual Impurity values using a Lognormal capability analysis, with process capability metrics and column switcher for limited impurity levels.
Code:
// Distribution Lognormal Capability
// Open data table
dt = Open("data_table.jmp");
// Distribution Lognormal Capability
Distribution(
Continuous Distribution(
Column( :Actual Impurity ),
Quantiles( 0 ),
Summary Statistics( 0 ),
Always use column properties( 1 ),
Histogram( 0 ),
Vertical( 0 ),
Outlier Box Plot( 0 ),
Fit Lognormal(
Process Capability(
LSL( . ),
Target( . ),
USL( 2.5 ),
Show as Graph Reference Lines
)
),
Process Capability( 0 )
),
Column Switcher(
:Actual Impurity,
{:Actual Impurity,
:"1.0 Limited Impurity"n,
:"1.5 Limited Impurity"n,
:"2.0 Limited Impurity"n,
:"2.5 Limited Impurity"n}
)
);
Code Explanation:
- Open data table.
- Create distribution analysis.
- Select continuous distribution.
- Choose "Actual Impurity" column.
- Disable quantiles display.
- Disable summary statistics.
- Use column properties.
- Disable histogram display.
- Disable vertical orientation.
- Disable outlier box plot display.
Example 3
Summary: Opens a data table, fits a linear model using the EMS method with interactions and random effects to analyze the 'Lot Acceptance' column (nominal distribution) and 'Dissolution' column (continuous distribution).
Code:
// Distribution Y's
Distribution(
Stack( 1 ),
Nominal Distribution(
Column( :Lot Acceptance ),
Horizontal Layout( 1 ),
Vertical( 0 )
),
Continuous Distribution(
Column( :Dissolution ),
Horizontal Layout( 1 ),
Vertical( 0 ),
Process Capability( 0 )
)
);
Code Explanation:
- Open distribution analysis.
- Stack data vertically.
- Analyze nominal distribution.
- Select "Lot Acceptance" column.
- Use horizontal layout.
- Disable vertical layout.
- Analyze continuous distribution.
- Select "Dissolution" column.
- Use horizontal layout.
- Disable vertical layout.
Example 4
Summary: Creates a distribution analysis with specified settings, saving the journal file and closing the data table.
Code:
dt = Open("data_table.jmp");
d = Distribution( Continuous Distribution( Column( :height ), Vertical( 0 ), Outlier Box Plot( 0 ), Process Capability( 0 ) ) );
d << save journal( "$temp\test.jrn" );
dt << close window( "NoSave" );
Code Explanation:
- Open table.
- Create distribution analysis.
- Disable vertical display.
- Disable outlier box plot.
- Disable process capability.
- Save journal file.
- Close data table.
Example 5
Summary: Process of creating a distribution analysis with custom settings, saving the journal to a temporary location and closing the original data table.
Code:
dt = Open("data_table.jmp");
d = Distribution( Continuous Distribution( Column( :height ), Vertical( 0 ), Outlier Box Plot( 0 ), Process Capability( 0 ) ) );
d << save journal( "$temp\test.jrn" );
dt << close window( "NoSave" );
j = Open( "$temp\test.jrn" );
Code Explanation:
- Open data table.
- Create distribution analysis.
- Disable vertical axis.
- Disable outlier box plot.
- Disable process capability.
- Save journal to temp.
- Close original data table.
- Open saved journal.
Example 6
Summary: Fits a linear model using the EMS method with interactions and random effects in JMP, utilizing the Distribution platform to analyze continuous data.
Code:
dt = Open("data_table.jmp");
Distribution( Continuous Distribution( Column( :height ), Process Capability( 0 ), Test Mean( 60 ) ) );
Code Explanation:
- Open data table.
- Launch Distribution platform.
- Analyze continuous column.
- Specify column "height".
- Enable process capability analysis.
- Set target mean to 60.
- Perform test for mean.
Example 7
Summary: Runs the process capability analysis for the 'weight' column using a Cauchy distribution and displays confidence intervals with term value settings.
Code:
dt = Open("data_table.jmp");
obj = dt << Distribution(
Continuous Distribution(
Column( :weight ),
Process Capability( 0 ),
Fit Cauchy(
Distribution Profiler( 1, Confidence Intervals( 1 ), Term Value( :weight( 118, N Levels( 200 ), Lock( 0 ), Show( 1 ) ) ) )
)
),
Histograms Only
);
rpt = Current Report();
Code Explanation:
- Open data table;
- Launch Distribution platform.
- Select continuous distribution analysis.
- Analyze "weight" column.
- Enable process capability analysis.
- Fit Cauchy distribution.
- Enable distribution profiler.
- Show confidence intervals.
- Set term value for weight.
- Store current report.
Example 8
Summary: Analyzes and creates reports for two continuous distributions: one for 'POP' column with process capability evaluation, and another for 'Max deg. F Jan' column with normal distribution fitting.
Code:
dt = Open("data_table.jmp");
obj = dt << Distribution(
Continuous Distribution(
Column( :POP ),
Process Capability( LSL( 2000 ), Target( 4000 ), USL( 7000 ), Show as Graph Reference Lines, Show Within Capability( 0 ) )
),
Continuous Distribution(
Column( :Max deg. F Jan ),
Fit Normal( Process Capability( LSL( 20 ), Target( 40 ), USL( 60 ), Show Within Capability( 0 ) ) )
)
);
rpt = obj << report;
Code Explanation:
- Open data table;
- Create Distribution object.
- Analyze "POP" column.
- Set LSL to 2000.
- Set target to 4000.
- Set USL to 7000.
- Show reference lines graphically.
- Disable within capability display.
- Analyze "Max deg. F Jan" column.
- Fit normal distribution.
- Set LSL to 20.
- Set target to 40.
- Set USL to 60.
- Disable within capability display.
- Generate report.
Example 9
Summary: Analyzes and creates reports for PM10 column distribution using a continuous distribution model with process capability limits, enabling automatic recalculation.
Code:
dt = Open("data_table.jmp");
obj = dt << Distribution(
Continuous Distribution( Column( :PM10 ), PpK Capability Labeling( 0 ), Process Capability( LSL( 5 ), Target( 40 ), USL( 75 ) ) )
);
obj << Automatic recalc( 1 );
rpt = obj << report;
Code Explanation:
- Open data table.
- Create distribution analysis.
- Analyze PM10 column.
- Set PpK labeling off.
- Define process capability limits.
- Enable automatic recalculation.
- Generate analysis report.
Example 10
Summary: Fits a lognormal distribution to the OZONE column in a data table, with process capability probabilities set for quantile specification limits.
Code:
dt = Open("data_table.jmp");
obj = dt << Distribution( Column( :OZONE ) );
obj << Fit Lognormal(
Process Capability( Set Probabilities for Quantile Spec Limits( LSL Prob( 0.0001 ), Target Prob( 0.5 ), USL Prob( 0.9999 ) ) )
);
rpt = obj << report;
Code Explanation:
- Open data table;
- Create distribution object for OZONE.
- Fit lognormal distribution.
- Set process capability probabilities.
- Define LSL probability as 0.0001.
- Define target probability as 0.5.
- Define USL probability as 0.9999.
- Generate report object.
Example 11
Summary: Runs a comprehensive analysis for continuous data, including distribution visualization, process capability assessment, tolerance interval calculation, and statistical testing.
Code:
dt = Open("data_table.jmp");
obj = dt << Distribution( Continuous Distribution( Column( :height ), Confidence Interval( 0.95 ) ) );
obj << Stem and Leaf( 1 );
obj << Process Capability( LSL( 50 ), Target( 60 ), USL( 80 ) );
obj << CDF Plot( 1 );
obj << Tolerance Interval( Alpha( 0.95 ), Proportion( 0.9 ), Both, Parametric Normal );
obj << Test Std Dev( 1 );
obj << Fit Poisson;
obj << Test Mean( 0 );
obj << Fit Cauchy;
obj << Test Equivalence( Target( 3 ), Practical Difference( 0.2 ), Confidence( 0.95 ) );
obj << Prediction Interval( 0.95, 1 );
rpt = obj << report;
Code Explanation:
- Open data table;
- Create distribution analysis for height.
- Add stem and leaf plot.
- Perform process capability analysis.
- Generate CDF plot.
- Calculate tolerance interval.
- Test standard deviation.
- Fit Poisson distribution.
- Test mean value.
- Fit Cauchy distribution.
- Test equivalence.
- Create prediction interval.
- Save report object.
Example 12
Summary: Analyze continuous distribution for :height with process capability limits, generating a report on the results.
Code:
dt = Open("data_table.jmp");
obj = dt << Distribution(
Freq( :age ),
Continuous Distribution( Column( :height ), Process Capability( LSL( . ), Target( . ), USL( 80 ) ) )
);
rpt = obj << report;
Code Explanation:
- Open data table.
- Create Distribution object.
- Set frequency column to :age.
- Analyze continuous distribution of :height.
- Define process capability limits.
- Set Lower Specification Limit (LSL) to minimum.
- Set Target to average.
- Set Upper Specification Limit (USL) to 80.
- Generate report from object.
- Assign report to rpt variable.
Example 13
Summary: Analyze a continuous distribution with ZI Negative Binomial and retrieves fitted measures, while also creating a new table and analyzing nominal distribution with local data filtering.
Code:
Open("data_table.jmp");
Distribution( Continuous Distribution( Column( :miles ), Process Capability( 0 ), Fit ZI Negative Binomial ) );
rpt = Current Report();
measures = rpt["miles", "Fitted ZI Negative Binomial Distribution", Number Col Box( 5 )] << get as matrix();
measures_bm = [108.760558363782, 115.960558363782, 118.294719854826];
dt = New Table( "test",
Add Rows( 7 ),
New Column( "a", Character, Nominal, Set Values( {"a", "a", "a", "b", "b", "a", "a"} ) ),
New Column( "nominal", Continuous, Set Values( [1, 0, 1, ., ., 1, 1] ) )
);
obj = dt << Distribution(
Stack( 1 ),
Nominal Distribution(
Column( :Nominal ),
Horizontal Layout( 1 ),
Vertical( 0 ),
Count Axis( 1 ),
Show Counts( 1 ),
Axes on Left( 1 ),
Confidence Interval( 0.95 )
)
);
ldf = obj << Local Data Filter( Add Filter( columns( :a ), Where( :a == "a" ) ) );
ldf << (Filter Column( :a ) << invert selection);
ldf << (Filter Column( :a ) << invert selection);
rpt = Current Report();
ci_table = rpt["nominal", "Confidence Intervals", Table Box( 1 )] << get as matrix();
ci_table_bm = [1 0.2 0.0362241086324302 0.624465370237475 0.95, 4 0.8 0.375534629762525 0.96377589136757 0.95, 5 . . . .];
Code Explanation:
- Open data_table data
- Analyze miles with ZI Neg Binomial.
- Retrieve fitted measures.
- Define benchmark measures.
- Create new table "test".
- Add rows and columns to table.
- Analyze nominal distribution.
- Add local data filter for column "a".
- Invert filter selection twice.
- Retrieve confidence intervals.
Example 14
Summary: Analyze and visualize a continuous distribution using the Negative Binomial model, extracting measures and confidence intervals from the fitted distribution.
Code:
dt = Open("data_table.jmp");
Distribution( Continuous Distribution( Column( :miles ), Process Capability( 0 ), Fit ZI Negative Binomial ) );
rpt = Current Report();
measures = rpt["miles", "Fitted ZI Negative Binomial Distribution", Number Col Box( 5 )] << get as matrix();
measures_bm = [108.760558363782, 115.960558363782, 118.294719854826];
Close( dt, no save );
dt = New Table( "test",
Add Rows( 7 ),
New Column( "a", Character, Nominal, Set Values( {"a", "a", "a", "b", "b", "a", "a"} ) ),
New Column( "nominal", Continuous, Set Values( [1, 0, 1, ., ., 1, 1] ) )
);
obj = dt << Distribution(
Stack( 1 ),
Nominal Distribution(
Column( :Nominal ),
Horizontal Layout( 1 ),
Vertical( 0 ),
Count Axis( 1 ),
Show Counts( 1 ),
Axes on Left( 1 ),
Confidence Interval( 0.95 )
)
);
ldf = obj << Local Data Filter( Add Filter( columns( :a ), Where( :a == "a" ) ) );
ldf << (Filter Column( :a ) << invert selection);
ldf << (Filter Column( :a ) << invert selection);
rpt = Current Report();
ci_table = rpt["nominal", "Confidence Intervals", Table Box( 1 )] << get as matrix();
ci_table_bm = [1 0.2 0.0362241086324302 0.624465370237475 0.95, 4 0.8 0.375534629762525 0.96377589136757 0.95, 5 . . . .];
Code Explanation:
- Open data table.
- Perform distribution analysis on miles column.
- Retrieve current report.
- Extract measures from fitted ZI Negative Binomial Distribution.
- Define benchmark measures.
- Close data table without saving.
- Create new test data table.
- Add rows and columns to test table.
- Perform distribution analysis on nominal column.
- Apply local data filter and retrieve confidence intervals.
Example 15
Summary: Analyze and visualize miles column distribution using a ZI Negative Binomial distribution, retrieving fitted measures and comparing them to benchmark values.
Code:
Open("data_table.jmp");
Distribution( Continuous Distribution( Column( :miles ), Process Capability( 0 ), Fit ZI Negative Binomial ) );
rpt = Current Report();
measures = rpt["miles", "Fitted ZI Negative Binomial Distribution", Number Col Box( 5 )] << get as matrix();
measures_bm = [108.760558363782, 115.960558363782, 118.294719854826];
Code Explanation:
- Open data table;
- Analyze miles column distribution.
- Fit ZI Negative Binomial distribution.
- Retrieve current report.
- Extract fitted measures.
- Store extracted measures in matrix.
- Define benchmark measures.
- Compare extracted measures with benchmarks.
Example 16
Summary: Process of extracting and retrieving the Stability Index from a distribution analysis in JMP, utilizing Report() and Associative Array() functions.
Code:
//Scripting the Report Layer Example
//Opens data table, runs distribution, shows 2 separate ways to get Stability Index from data
//Intended to be run in blocks rather than all at once
names default to here(1);
dt = Open("data_table.jmp");
dist = Distribution(
Continuous Distribution(
Column( :NPN1 ),
Process Capability( Use Column Property Specs )
),
SendToReport(
Dispatch(
{"NPN1", "Process Capability", "NPN1 Capability", "Histogram"},
"Process Capability Analysis Histogram",
FrameBox,
{Frame Size( 320, 20 )}
)
)
);
//run to this point, then manually show properties (Ctrl+Shift+i)
//Method 1:
// get list of all process summary strings
// find where 'Stability Index' is
// get list of all process summary numbers
// lookup stability index location
lsta = Report(dist)["NPN1","Process Capability","NPN1 Capability","Process Summary",StringColBox(1)] << Get;
x = contains (lsta, "Stability Index");
lstb = Report(dist)["NPN1","Process Capability","NPN1 Capability","Process Summary",NumberColBox(1)] << Get;
stabilityindex = lstb[x];
//Method 2:
// get lists of process summary strings and values
// create associative array
// lookup 'Stability Index' in associative array
// This is better because other values are easy to look up later
lsta = Report(dist)["NPN1","Process Capability","NPN1 Capability","Process Summary",StringColBox(1)] << Get;
lstb = Report(dist)["NPN1","Process Capability","NPN1 Capability","Process Summary",NumberColBox(1)] << Get;
aa = Associative Array (eval list (lsta), eval list(lstb));
stabilityindex = aa["Stability Index"];
Code Explanation:
- Set names default to here.
- Open data table.
- Run distribution analysis.
- Adjust histogram frame size.
- Get process summary strings.
- Find 'Stability Index' position.
- Get process summary numbers.
- Retrieve stability index value.
- Create associative array.
- Lookup stability index in array.
Capability using Control Chart
Example 1
Summary: Generates a control chart with capability analysis for the X column, including histogram customization and normal quantile plot. It also sends the report to a dispatch table.
Code:
// Control Chart
// Open data table
dt = Open("data_table.jmp");
// Control Chart
Control Chart(
Sample Label( :Lot ),
KSigma( 3 ),
Chart Col(
:X,
XBar,
R,
Capability(
Distribution(
Continuous Distribution(
Column( :X ),
Quantiles( 0 ),
Summary Statistics(
0
),
Count Axis( 1 ),
Outlier Box Plot( 0 ),
Normal Quantile Plot(
1
),
Capability Analysis(
LSL( 107 ),
USL( 147 ),
Target( 127 ),
Sigma(
40.1484175601687
)
)
)
)
)
),
SendToReport(
Dispatch( {"Distributions", "X"},
"Distrib Histogram", FrameBox,
{
DispatchSeg(
Hist Seg( 1 ),
Histogram Color( 42 )
)}
)
)
);
Code Explanation:
- Open table.
- Create control chart.
- Set sample label.
- Define K Sigma.
- Add chart column.
- Specify XBar.
- Specify R.
- Add capability analysis.
- Define distribution.
- Customize histogram color.
Example 2
Summary: Generates a control chart and distribution for a given dataset, enabling capability analysis with LSL and USL values, while also visualizing individual measurements and outliers.
Code:
// Control Chart and Distribution
// Open data table
dt = Open("data_table.jmp");
// Control Chart and Distribution
Control Chart(
Sample Label( :API Lot No ),
Group Size( 1 ),
KSigma( 3 ),
Chart Col(
:Disso,
Individual Measurement(
Test 1( 1 )
),
Capability(
LSL( 70 ),
USL( . ),
Target( . )
)
)
);
Code Explanation:
- Open data table.
- Create control chart.
- Set sample label.
- Define group size.
- Set KSigma value.
- Add chart column.
- Select Disso variable.
- Apply individual measurement test.
- Enable capability analysis.
- Set LSL value.
Example 3
Summary: Creates a control chart with CUSUM method for monitoring weight distribution, utilizing Control Chart and Capability Analysis features in JMP.
Code:
dt under test = Open("data_table.jmp");
obj = Control Chart(
Sample Label( :hour ),
H( 2 ),
Show Limits Legend( 0 ),
Chart Col(
:weight,
CUSUM( Show Parameters( 1 ), Show ARL( 1 ), Two Sided( 1 ), Target( 8.1 ), Delta( 1 ), Sigma( 0.05 ), Head Start( 0.05 ) ),
Capability(
Distribution(
Continuous Distribution(
Column( :weight ),
Quantiles( 0 ),
Summary Statistics( 0 ),
Outlier Box Plot( 0 ),
Normal Quantile Plot( 1 ),
Capability Analysis( LSL( -1 ), USL( 0.5 ), Target( -0.3 ), Sigma( 0.05 ) )
)
)
)
)
);
Code Explanation:
- Open data table.
- Create control chart object.
- Set sample label column.
- Configure control chart parameters.
- Hide limits legend.
- Add chart column for weight.
- Apply CUSUM method.
- Display CUSUM parameters.
- Display ARL values.
- Enable two-sided CUSUM.
Example 4
Summary: Creates a control chart for weight data, utilizing CUSUM and capability analysis to visualize process stability and performance.
Code:
dt under test = Open("data_table.jmp");
obj = Control Chart(
Sample Label( :hour ),
H( 2 ),
Show Limits Legend( 0 ),
Chart Col(
:weight,
CUSUM( Show Parameters( 1 ), Show ARL( 1 ), Two Sided( 1 ), Target( 8.1 ), Delta( 1 ), Sigma( 0.05 ), Head Start( 0.05 ) ),
Capability(
Distribution(
Continuous Distribution(
Column( :weight ),
Quantiles( 0 ),
Summary Statistics( 0 ),
Outlier Box Plot( 0 ),
Normal Quantile Plot( 1 ),
Capability Analysis( LSL( -1 ), USL( 0.5 ), Target( -0.3 ), Sigma( 0.05 ) )
)
)
)
),
SendToReport(
Dispatch( {}, "Distributions", OutlineBox, {Close( 1 )} ),
Dispatch( {"Distributions", "weight"}, "5", ScaleBox, {Show Major Grid( 1 )} )
)
);
Code Explanation:
- Open data table.
- Create control chart object.
- Set sample label to hour.
- Set horizontal limit to 2.
- Hide limits legend.
- Add weight column to chart.
- Configure CUSUM settings.
- Enable parameter and ARL display.
- Set CUSUM to two-sided.
- Define target, delta, sigma, and head start values.
Example 5
Summary: Creates a control chart with individual measurements and moving ranges, utilizing K-Sigma and capability analysis to evaluate data quality.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart(
Group Size( 1 ),
KSigma( 3 ),
Chart Col( Transform Column( "Exp[height]", Formula( Exp( :height ) ) ), Individual Measurement, Moving Range )
);
rpt = obj << report;
dtsum = obj << in new table;
Log Capture( dtsum2 = obj << in column );
dtsum3 = obj << save summaries;
dtsum4 = obj << save sigma;
obj << Capability( LSL( 0 ), USL( 10 ), Target( 5 ) );
Close( dt, no save );
Code Explanation:
- Open data table.
- Create control chart object.
- Set group size to 1.
- Set K Sigma to 3.
- Add transformed height column.
- Plot individual measurement and moving range.
- Generate control chart report.
- Save summary data in new table.
- Log captured data.
- Save additional summaries and sigmas.
- Add capability analysis with limits.
- Close original data table without saving.
Example 6
Summary: Create and execute a control chart for quality monitoring, utilizing JMP's Control Chart platform to analyze the Weight column with sample labels and capability analysis.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart(
Sample Label( :Sample ),
KSigma( 3 ),
Chart Col(
:Weight,
XBar,
R,
Capability(
Distribution(
Continuous Distribution(
Column( :Weight ),
Quantiles( 0 ),
Summary Statistics( 0 ),
Outlier Box Plot( 0 ),
Normal Quantile Plot( 1 ),
Capability Analysis( LSL( 16.5 ), USL( 23 ), Target( 21.5 ), Sigma( 1.07468084919883 ), Shewhart )
)
)
)
)
);
obj << Save script to data table;
obj2 = dt << Run Script( "Control chart by Sample" );
rpt = obj2 << report;
Code Explanation:
- Open data table.
- Create control chart object.
- Set sample label to :Sample.
- Set KSigma to 3.
- Add Weight column to chart.
- Use XBar chart type.
- Use R chart type.
- Perform capability analysis on Weight.
- Set distribution to continuous.
- Enable normal quantile plot.
- Define LSL, USL, Target, and Sigma.
- Use Shewhart method for capability.
- Save script to data table.
- Run saved script "Control chart by Sample".
- Generate report from run script.
Example 7
Summary: Creates a control chart with individual measurement and moving range, utilizing transformed height data to analyze capability.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart(
Group Size( 1 ),
KSigma( 3 ),
Chart Col( Transform Column( "Exp[height]", Formula( Exp( :height ) ) ), Individual Measurement, Moving Range )
);
rpt = obj << report;
dtsum = obj << in new table;
Log Capture( dtsum2 = obj << in column );
dtsum3 = obj << save summaries;
dtsum4 = obj << save sigma;
obj << Capability( LSL( 0 ), USL( 10 ), Target( 5 ) );
Code Explanation:
- Open data table.
- Create control chart object.
- Set group size to 1.
- Set KSigma to 3.
- Add transformed height column.
- Use individual measurement and moving range.
- Generate report from chart.
- Create new table from summary.
- Capture log into new table.
- Save summaries to table.
- Save sigma to table.
- Perform capability analysis.
Example 8
Summary: Creates a control chart for DIAMETER, including individual measurements and moving ranges, with capability analysis and report generation.
Code:
dt = Open("data_table.jmp");
obj = Control Chart(
Use Excluded Points on MR,
Group Size( 1 ),
KSigma( 3 ),
Chart Col(
:DIAMETER,
Individual Measurement,
Moving Range,
Capability(
Distribution(
Continuous Distribution(
Column( :DIAMETER ),
Quantiles( 0 ),
Moments( 0 ),
Outlier Box Plot( 0 ),
Normal Quantile Plot( 1 ),
Capability Analysis( LSL( 3 ), USL( 5 ), Target( 4 ) )
)
)
)
)
);
obj << Save Script to Data Table;
obj2 = dt << Run Script( "Control Chart" );
rpt = obj << report;
rpt2 = obj2 << report;
Code Explanation:
- Open data table;
- Create control chart object.
- Use excluded points in MR.
- Set group size to 1.
- Set KSigma to 3.
- Add DIAMETER to chart.
- Include individual measurement.
- Include moving range.
- Perform capability analysis.
- Save script to data table.
Example 9
Summary: Creates and configures a control chart for diameter measurements, including capability analysis and moving range calculation.
Code:
ut relative epsilon = 1e-10;
dt = Open("data_table.jmp");
obj = Control Chart(
Use Excluded Points on MR,
Group Size( 1 ),
KSigma( 3 ),
Chart Col(
:DIAMETER,
Individual Measurement,
Moving Range,
Capability(
Distribution(
Continuous Distribution(
Column( :DIAMETER ),
Quantiles( 0 ),
Moments( 0 ),
Outlier Box Plot( 0 ),
Normal Quantile Plot( 1 ),
Capability Analysis( LSL( 3 ), USL( 5 ), Target( 4 ) )
)
)
)
)
);
obj << Save Script to Data Table;
obj2 = dt << Run Script( "Control Chart" );
rpt = obj << report;
rpt2 = obj2 << report;
Code Explanation:
- Define relative epsilon.
- Open data table.
- Create control chart object.
- Configure control chart settings.
- Add diameter column analysis.
- Enable moving range.
- Set control limits to 3 sigma.
- Include capability analysis.
- Save script to data table.
- Run saved script on data table.
Capability using Control Chart Builder
Example 1
Summary: Visualizes a control chart for surface quality using the Control Chart Builder, with points calculated as counts and limits set to Poisson sigma.
Code:
// Control Chart Builder 3
// Open data table
dt = Open("data_table.jmp");
// Control Chart Builder 3
Control Chart Builder(
Size( 524, 450 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Y( :surface quality ) ),
Chart(
Points( Statistic( "Count" ) ),
Limits( Sigma( "Poisson" ) )
)
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Set size to 524x450.
- Hide control panel.
- Hide capability.
- Set class to Shewhart Attribute.
- Set Y variable to surface quality.
- Add points with count statistic.
- Set limits to Poisson sigma.
Example 2
Summary: Creates a control chart builder in JMP, specifying subgroup and response variables, and adding two charts for analysis.
Code:
// Control Chart Builder
// Open data table
dt = Open("data_table.jmp");
// Control Chart Builder
Control Chart Builder(
Show Capability( 0 ),
Variables(
Subgroup( :Run ),
Y( :Length )
),
Chart( Position( 1 ) ),
Chart( Position( 2 ) )
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Disable capability analysis.
- Define subgroup variable.
- Define response variable.
- Add first chart.
- Add second chart.
Example 3
Summary: Visualizes an IMR Chart using Control Chart Builder, displaying two charts with moving range limits and enabling all warnings.
Code:
// IMR Chart
// Open data table
dt = Open("data_table.jmp");
// IMR Chart
Control Chart Builder(
Show Capability( 0 ),
Variables( Y( :Y ) ),
Chart(
Position( 1 ),
Limits( Sigma( Moving Range ) ),
Warnings(
Test 1( 1 ),
Test 2( 1 ),
Test 3( 1 ),
Test 4( 1 ),
Test 5( 1 ),
Test 6( 1 ),
Test 7( 1 ),
Test 8( 1 )
)
),
Chart(
Position( 2 ),
Limits( Sigma( Moving Range ) )
)
);
Code Explanation:
- Open data table.
- Create IMR Chart.
- Hide capability report.
- Set Y variable.
- Add first chart.
- Position first chart.
- Set moving range limits.
- Enable all warnings.
- Add second chart.
- Position second chart.
Example 4
Summary: This JSL script initializes the Control Chart Builder, defines subgroup and Y variables, enables all warning tests, and adds two chart positions to visualize data from a table.
Code:
// Control Chart Builder
// Open data table
dt = Open("data_table.jmp");
// Control Chart Builder
Control Chart Builder(
Show Capability( 0 ),
Variables(
Subgroup( :Run ),
Y( :Length )
),
Chart(
Position( 1 ),
Warnings(
Test 1( 1 ),
Test 2( 1 ),
Test 3( 1 ),
Test 4( 1 ),
Test 5( 1 ),
Test 6( 1 ),
Test 7( 1 ),
Test 8( 1 )
)
),
Chart( Position( 2 ) )
);
Code Explanation:
- Open table.
- Initialize Control Chart Builder.
- Disable capability display.
- Define subgroup variable.
- Define Y variable.
- Add first chart position.
- Enable all warning tests.
- Add second chart position.
Example 5
Summary: Opens a data table, initializes the Control Chart Builder, and creates two Shewhart charts with customized control limits.
Code:
// Control Chart Builder
// Open data table
dt = Open("data_table.jmp");
// Control Chart Builder
Control Chart Builder(
Show Capability( 0 ),
Variables(
Subgroup( :Run ),
Y( :Length )
),
Chart(
Position( 1 ),
Set Control Limits(
{LCL( 15.90519 ),
UCL( 16.09131 ),
Avg( 15.99825 )}
)
),
Chart(
Position( 2 ),
Set Control Limits(
{LCL( 0 ), UCL( 0.161693 ),
Avg( 0.0495 )}
)
)
);
Code Explanation:
- Open data table.
- Initialize Control Chart Builder.
- Hide capability report.
- Define subgroup variable.
- Define response variable.
- Create first chart.
- Set control limits for first chart.
- Create second chart.
- Set control limits for second chart.
Example 6
Summary: Opens a data table, creates a Control Chart Builder with two charts and customizes the report appearance.
Code:
// Control Chart Builder
// Open data table
dt = Open("data_table.jmp");
// Control Chart Builder
Control Chart Builder(
Show Capability( 0 ),
Variables(
Subgroup( :Run ),
Y( :Force ),
Phase( :Site )
),
Chart(
Position( 1 ),
Limits( Sigma( "Moving Range" ) )
),
Chart(
Position( 2 ),
Limits( Sigma( "Moving Range" ) )
),
SendToReport(
Dispatch( {},
"Control Chart Builder",
FrameBox,
{
DispatchSeg(
Text Seg( 4 ),
{Line Color( "None" ),
Fill Color( "None" )}
),
DispatchSeg(
Text Seg( 5 ),
{Line Color( "None" ),
Fill Color( "None" )}
),
DispatchSeg(
Text Seg( 6 ),
{Line Color( "None" ),
Fill Color( "None" )}
)}
)
)
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Hide capability report.
- Set subgroup variable.
- Set Y variable.
- Set phase variable.
- Add first chart.
- Set limits to moving range.
- Add second chart.
- Customize report appearance.
Example 7
Summary: Visualizes a three-way control chart of fill weight using Control Chart Builder, with charts for average points, moving range on means, and range limits.
Code:
// Three-Way Chart of Fill Weight
// Open data table
dt = Open("data_table.jmp");
// Three-Way Chart of Fill Weight
Control Chart Builder(
Size( 526, 451 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables(
Subgroup( :Sample ),
Y( :Fill Weight )
),
Chart(
Position( 1 ),
Points( Statistic( "Average" ) ),
Limits( Sigma )
),
Chart(
Position( 2 ),
Points(
Statistic(
"Moving Range on Means"
)
),
Limits( Sigma )
),
Chart(
Position( 3 ),
Points( Statistic( "Range" ) ),
Limits( Sigma )
)
);
Code Explanation:
- Open table.
- Create control chart builder.
- Set size.
- Hide control panel.
- Hide capability.
- Define variables.
- Add first chart.
- Set position.
- Plot average points.
- Add sigma limits.
Example 8
Summary: Creates a Control Chart Builder in JMP, specifying window size, hiding control panel and limit summaries, defining subgroup variables, and building a chart with height as the Y variable.
Code:
Open("data_table.jmp");
Control Chart Builder(
Size( 639, 514 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :weight ), Subgroup( :age, Position( 1 ) ), Y( :height ) )
);
Code Explanation:
- Open data table;
- Launch Control Chart Builder.
- Set window size.
- Hide control panel.
- Hide limit summaries.
- Hide capability.
- Define subgroup variables.
- Define Y variable.
- Build chart.
Example 9
Summary: Opens a data table and generates a Control Chart using the weight, age, and height variables to visualize subgroup performance.
Code:
dt = Open("data_table.jmp");
Control Chart Builder(
Size( 639, 514 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :weight ), Subgroup( :age, Position( 1 ) ), Y( :height ) )
);
Code Explanation:
- Open data_table data
- Launch Control Chart Builder.
- Set window size.
- Hide control panel.
- Hide limit summaries.
- Hide capability report.
- Define weight as subgroup.
- Define age as subgroup variable.
- Position age at first position.
- Define height as Y variable.
Example 10
Summary: Visualizes process capability analysis using Control Chart Builder, generating three charts to evaluate the performance of a manufacturing process. The script sets limits, enables warning tests, and sends reports to outline boxes.
Code:
Open("data_table.jmp");
Control Chart Builder(
Size( 534, 448 ),
Show Control Panel( 0 ),
Variables( Subgroup( :wafer ), Y( :NPN2 ) ),
Chart(
Position( 1 ),
Points( Statistic( "Average" ), Box Plots( 1 ), Show Points( 0 ), Show Connect Line( 0 ) ),
Limits( Sigma( "Moving Range" ) ),
Warnings(
Test 1( 1 ),
Test 2( 1 ),
Test 3( 1 ),
Test 4( 1 ),
Test 5( 1 ),
Test 6( 1 ),
Test 7( 1 ),
Test 8( 1 ),
Test Beyond Limits( 1 )
),
Process Capability Analysis(
Within Sigma Capability( 0 ),
Histogram( 1, Show Spec Limits( 0 ), Show Target( 0 ), Show Count Axis( 1 ), Show Density Axis( 1 ) )
)
),
Chart(
Position( 2 ),
Points( Statistic( "Moving Range on Means" ) ),
Limits( Sigma( "Median Moving Range" ) ),
Warnings( Test Beyond Limits( 1 ) )
),
Chart(
Position( 3 ),
Points( Statistic( "Moving Range on Std Dev" ) ),
Limits( Sigma( "Median Moving Range" ) ),
Warnings( Test Beyond Limits( 1 ) )
),
SendToReport(
Dispatch( {"NPN2 Limit Summaries", "Process Capability
Analysis"}, "Process Summary", OutlineBox, {Close( 1 )} ),
Dispatch( {"NPN2 Limit Summaries", "Process Capability
Analysis"}, "Overall Sigma Capability", OutlineBox, {Close( 1 )} ),
Dispatch( {"NPN2 Limit Summaries", "Process Capability
Analysis"}, "Nonconformance", OutlineBox, {Close( 1 )} )
)
);
Code Explanation:
- Open data table;
- Launch Control Chart Builder.
- Set chart size.
- Hide control panel.
- Define subgroup and Y variables.
- Create first chart: average points, box plots.
- Set limits using moving range.
- Enable all warning tests.
- Add process capability analysis: histogram, count, density axes.
- Create second chart: moving range on means.
- Set limits using median moving range.
- Enable beyond limits test.
- Create third chart: moving range on std dev.
- Set limits using median moving range.
- Enable beyond limits test.
- Close specific report sections.
Example 11
Summary: Creates a Control Chart Builder with customized settings for visualizing Diameter data, utilizing Size and SendToReport features.
Code:
Open("data_table.jmp");
C1 = Control Chart Builder(
Size( 1200, 550 ),
Show Two Shewhart Charts( 0 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :Diameter ), Phase( :Phase ) ),
Chart( Points( Statistic( "Individual" ) ), Limits( Sigma, Show Center Line( 0 ), Show Limits( 0 ) ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", OutlineBox, {Set Title( "IR Control Chart" )} ),
Dispatch( {}, "Diameter", ScaleBox,
{Min( 3.0 ), Max( 5.5 ), Inc( 0.5 ), Minor Ticks( 0 ), Add Ref Line( 4.0, "Dashed", "Purple", "125000", 1 ),
Add Ref Line( 4.5, "DashDotDot", "Cyan", "352000", 1 )}
)
)
);
Code Explanation:
- Open data table;
- Create Control Chart Builder.
- Set window size to 1200x550.
- Hide Two Shewhart Charts.
- Hide Control Panel.
- Hide Capability.
- Set variables: Diameter for Y, Phase for X.
- Plot Individual statistic points.
- Hide center and limit lines.
- Set title to "IR Control Chart".
- Set Diameter axis min to 3.0.
- Set Diameter axis max to 5.5.
- Set Diameter axis increment to 0.5.
- Hide minor ticks on Diameter axis.
- Add reference line at 4.0 with dashed purple line.
- Add reference line at 4.5 with dash-dot-dot cyan line.
Example 12
Summary: Creates a control chart builder to visualize diameter data, utilizing a customized chart size and axis settings.
Code:
Open("data_table.jmp");
C1 = Control Chart Builder(
Size( 1200, 550 ),
Show Two Shewhart Charts( 0 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :Diameter ), Phase( :Phase ) ),
Chart( Points( Statistic( "Individual" ) ), Limits( Sigma, Show Center Line( 0 ), Show Limits( 0 ) ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", OutlineBox, {Set Title( "IR Control Chart" )} ),
Dispatch( {}, "Diameter", ScaleBox,
{Min( 3.0 ), Max( 5.5 ), Inc( 0.5 ), Minor Ticks( 0 ), Add Ref Line( 4.0, "Dashed", "Purple", "125000", 1 ),
Add Ref Line( 4.5, "DashDotDot", "Cyan", "352000", 1 )}
)
)
);
Report( C1 )[AxisBox( 1 )] << Axis Settings( {Show Labels( 0 ), Show Major Ticks( 0 ), Show Minor Ticks( 0 )} );
Code Explanation:
- Open data table.
- Create control chart builder.
- Set chart size to 1200x550.
- Hide two Shewhart charts.
- Hide control panel.
- Hide capability analysis.
- Define variables for diameter and phase.
- Plot individual points with sigma limits.
- Set chart title to "IR Control Chart".
- Configure axis settings for diameter.
Example 13
Summary: Creates a control chart builder with three charts: average points, moving range points, and standard deviation points, using custom limits for each.
Code:
Open("data_table.jmp") << Control Chart Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :DAY ), Y( :DIAMETER ) ),
Chart(
Position( 1 ),
Points( Statistic( "Average" ) ),
Limits( Sigma( "Moving Range" ) ),
Add Limits( {LCL( 4.1 ), UCL( 4.8 ), Avg( 4.2 )} )
),
Chart(
Position( 2 ),
Points( Statistic( "Moving Range on Means" ) ),
Limits( Sigma( "Moving Range" ) ),
Add Limits( {LCL( 0 ), UCL( 1.1 ), Avg( 0.5 )} )
),
Chart(
Position( 3 ),
Points( Statistic( "Standard Deviation" ) ),
Limits( Sigma( "Standard Deviation" ) ),
Add Limits( {LCL( 0 ), UCL( 0.5 ), Avg( 0.3 )} )
)
);
Code Explanation:
- Open data table;
- Create control chart builder.
- Set window size.
- Hide control panel.
- Hide capability report.
- Define subgroup and Y variables.
- Add first chart: average points.
- Set limits using moving range.
- Add custom limits for average.
- Add second chart: moving range points.
- Set limits using moving range.
- Add custom limits for moving range.
- Add third chart: standard deviation points.
- Set limits using standard deviation.
- Add custom limits for standard deviation.
Example 14
Summary: Creates a control chart builder object with specific variables and settings, excluding and hiding selected rows.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :DAY ), Y( :DIAMETER ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ) ),
Chart( Position( 2 ) )
);
dt << select rows( {235, 236, 237, 238, 239, 240} ) << exclude;
dt << select rows( {127, 128, 129, 130, 131, 132} ) << exclude << hide;
dt << select rows( {1} ) << exclude;
Code Explanation:
- Open data table.
- Create control chart builder object.
- Hide capability report.
- Set subgroup variable.
- Set Y variable.
- Add box plot to chart.
- Select specific rows.
- Exclude selected rows.
- Select other rows.
- Exclude and hide selected rows.
Example 15
Summary: Creates a control chart builder object with specific settings and row exclusions, enabling interactive exploration of data.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :DAY ), Y( :DIAMETER ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ) ),
Chart( Position( 2 ) )
);
dt << select rows( {235, 236, 237, 238, 239, 240} ) << exclude;
dt << select rows( {127, 128, 129, 130, 131, 132} ) << exclude << hide;
dt << select rows( {1} ) << exclude;
dt << select rows( {7} ) << hide;
Code Explanation:
- Open data table.
- Create control chart builder object.
- Disable capability display.
- Set subgroup and Y variables.
- Add box plot to first position.
- Add second chart position.
- Exclude specific rows.
- Exclude and hide additional rows.
- Exclude first row.
- Hide seventh row.
Example 16
Summary: Creates a control chart builder to monitor defects in a manufacturing process, utilizing median moving range limits and shaded zones.
Code:
Open("data_table.jmp") << Control Chart Builder(
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Lot ), Y( :Name( "# defective" ) ) ),
Chart(
Position( 1 ),
Points( Show Connect Line( 0 ) ),
Limits( Sigma( "Median Moving Range" ), Shade Zones( 1 ) ),
Warnings(
Test 1( 1 ),
Test 2( 1 ),
Test 3( 1 ),
Test 4( 1 ),
Test 5( 1 ),
Test 6( 1 ),
Test 7( 1 ),
Test 8( 1 ),
Rule 2 2S( 1 ),
Rule 10 X( 1 ),
Test Beyond Limits( 1 )
)
),
Chart( Position( 2 ), Points( Show Points( 0 ) ), Limits( Show Center Line( 0 ) ) )
);
Code Explanation:
- Open data table;
- Create control chart builder.
- Hide control panel.
- Hide capability report.
- Define subgroup and Y variables.
- Set chart position to 1.
- Disable connect line for points.
- Use median moving range for limits.
- Enable shaded zones.
- Apply multiple control chart tests.
Example 17
Summary: Creates a Control Chart Builder with filtered data, hiding control panel and capability analysis, and setting subgroup and Y variables.
Code:
Open("data_table.jmp") << Control Chart Builder(
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Day ), Y( :Delay ) ),
Local Data Filter(
Add Filter( columns( :Reason ), Where( :Reason == {"Fog", "Late", "Mechanical"} ), Display( :Reason, Size( 160, 119 ) ) )
)
);
Code Explanation:
- Open data table.
- Launch Control Chart Builder.
- Hide control panel.
- Hide capability analysis.
- Set subgroup variable.
- Set Y variable.
- Add local data filter.
- Filter by specific reasons.
- Display filter settings.
Example 18
Summary: Creates a Control Chart Builder in JMP, filtering data by specific reasons and hiding unnecessary panels.
Code:
Open("data_table.jmp") << Control Chart Builder(
Show Control Panel( 0 ),
Show Excluded Region( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Day ), Y( :Delay ) ),
Chart( Position( 1 ), Points( Show Points( 0 ) ) ),
Local Data Filter(
Width( 160 ),
Add Filter( columns( :Reason ), Where( :Reason == {"Fog", "Late", "Mechanical"} ), Display( :Reason, Height( 119 ) ) )
)
);
Code Explanation:
- Open data table;
- Create Control Chart Builder.
- Hide control panel.
- Hide excluded region.
- Hide capability analysis.
- Set subgroup variable.
- Set response variable.
- Position chart.
- Hide data points.
- Add local data filter.
Example 19
Summary: Creates a control chart builder for analyzing defect proportion in a manufacturing process, utilizing Shewhart Attribute charts and local data filtering.
Code:
dt = Open("data_table.jmp");
Control Chart Builder(
Size( 553, 402 ),
Show Control Panel( 0 ),
Show Alarm Report( 1 ),
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Subgroup( :Lot ), Y( :Name( "# defective" ) ), n Trials( :Lot Size ) ),
Chart( Points( Statistic( "Proportion" ) ), Limits( Sigma( "Binomial" ) ) ),
Local Data Filter( Add Filter( columns( :Lot Size 2 ), Where( :Lot Size 2 >= 373 & :Lot Size 2 <= 415 ) ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox,
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 6 ),
Index Row( 9 ),
UniqueID( -1121052642 ),
FoundPt( {579, 179} ),
Origin( {9.92505118141551, 0.0125415726920956} ),
RightOfCenter( 1 ),
Tag Line( 1 )
)
)
)
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Set chart size.
- Hide control panel.
- Show alarm report.
- Hide capability report.
- Set chart type to Shewhart Attribute.
- Define variables: subgroup, Y, n Trials.
- Configure chart for proportion statistic.
- Apply local data filter on Lot Size 2.
Example 20
Summary: Creates a control chart builder with moving range limits for subgroup analysis, filtering sites 1 and 3.
Code:
Open("data_table.jmp");
Control Chart Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Run ), Y( :Force ), Phase( :Site ) ),
Chart( Position( 1 ), Limits( Sigma( "Moving Range" ) ) ),
Chart( Position( 2 ), Limits( Sigma( "Moving Range" ) ) ),
Local Data Filter( Add Filter( columns( :Site ), Where( :Site == {1, 3} ) ) ),
);
Code Explanation:
- Open data table;
- Create control chart builder.
- Set window size.
- Hide control panel.
- Hide capability report.
- Define variables: subgroup, Y, phase.
- Add first chart with moving range limits.
- Add second chart with moving range limits.
- Apply local data filter.
- Filter sites 1 and 3.
Example 21
Summary: Creates a control chart builder in JMP, specifying window size, hiding control panel and capability report, defining variables, and plotting individual points.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Size( 531, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Sports ), Y( :Grade ), Phase( :Grades ) ),
Chart( Position( 1 ), Points( Individual Points( 1 ) ) )
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Set window size.
- Hide control panel.
- Hide capability report.
- Define variables: subgroup, Y, phase.
- Add chart position.
- Plot individual points.
- Assign chart to object.
- End script.
Example 22
Summary: Creates a Control Chart Builder with specific settings to visualize height data, excluding rows 4-7 and hiding control panel, excluded region, limit summaries, and capability analysis.
Code:
dt = Open("data_table.jmp");
dt << select rows( {4, 5, 6, 7} ) << Hide << Exclude;
Control Chart Builder(
Size( 500, 400 ),
Show Control Panel( 0 ),
Show Excluded Region( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Y( :height ) ),
Chart( Position( 1 ), Points( Show Points( 0 ) ) ),
Chart( Position( 2 ), Points( Show Points( 0 ) ) )
);
Code Explanation:
- Open data table.
- Select rows 4-7.
- Hide selected rows.
- Exclude selected rows.
- Create Control Chart Builder.
- Set window size to 500x400.
- Hide control panel.
- Hide excluded region.
- Hide limit summaries.
- Hide capability analysis.
Example 23
Summary: Creates a control chart builder to visualize and analyze data from a specified data table, with customizable window size, hidden control panel, and defined subgroup and response variables.
Code:
dt1 = Open("data_table.jmp");
Control Chart Builder( Size( 400, 300 ), Show Control Panel( 0 ), Show Capability( 0 ), Variables( Subgroup( :Temp ), Y( :Hours ) ) );
Code Explanation:
- Open data table;
- Create control chart builder.
- Set window size.
- Hide control panel.
- Hide capability report.
- Define subgroup variable.
- Define response variable.
Example 24
Summary: Creates a control chart builder with moving range limits and subgroup size set to 5, utilizing the Control Chart Builder platform in JMP.
Code:
dt = Open("data_table.jmp");
dt << set row states(
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11520, 11520, 11520, 11520, 11520, 176, 176, 176, 176, 176, 6, 6, 6, 6, 6, 2, 2, 2, 2, 2,
4, 4, 4, 4, 4]
);
Control Chart Builder(
Size( 540, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :height ) ),
Set Subgroup Size( 5 ),
Chart( Position( 2 ), Points( Statistic( "Moving Range on Means" ) ), Limits( Sigma( "Moving Range" ) ) )
);
Code Explanation:
- Open data table.
- Set row states in data table.
- Create control chart builder.
- Set size of control chart.
- Hide control panel.
- Hide capability analysis.
- Add height variable to Y-axis.
- Set subgroup size to 5.
- Add moving range on means plot.
- Add moving range limits.
Example 25
Summary: Creates a Control Chart Builder with two charts, configuring subgroup and Y variables, and setting window size.
Code:
Open("data_table.jmp") << Control Chart Builder(
Size( 534, 448 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Date ), Y( :Abrasion ) ),
Chart( Position( 1 ), Points( Statistic( "Standard Deviation" ), Show Points( 0 ) ), Limits( Sigma( "Standard Deviation" ) ) ),
Chart( Position( 2 ), Points( Statistic( "Moving Range on Means" ), Show Points( 0 ) ), Limits( Sigma( "Moving Range" ) ) )
);
Code Explanation:
- Open data table;
- Create Control Chart Builder.
- Set window size.
- Hide control panel.
- Hide capability analysis.
- Define subgroup variable.
- Define Y variable.
- Add first chart.
- Set chart position.
- Configure points and limits.
Example 26
Summary: Creates a Shewhart Attribute control chart to analyze Sugars data for Manufacturer and Calories equal 190, utilizing Control Chart Builder.
Code:
dt = Open("data_table.jmp");
dt << select where( :Calories == 190 );
Control Chart Builder(
Size( 700, 488 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Subgroup( :Manufacturer ), Y( :Sugars ), Phase( :Calories ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma( "Poisson" ) ) )
);
Code Explanation:
- Open data table;
- Select rows where Calories equal 190.
- Create control chart builder.
- Set chart size.
- Hide control panel.
- Hide limit summaries.
- Hide capability.
- Set chart type to Shewhart Attribute.
- Define variables: Manufacturer, Sugars, Calories.
- Plot points with Poisson limits.
Example 27
Summary: Creates a Control Chart Builder window with customized settings, including subgroups and Y variable configuration.
Code:
Open("data_table.jmp");
Control Chart Builder(
Size( 528, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Gender ), Subgroup( :Age, Position( 1 ) ), Subgroup( :BP, Position( 1 ) ), Y( :BMI ) ),
Chart( Position( 1 ), Points( Individual Points( 1 ), Show Points( 0 ), Show Connect Line( 0 ) ), Limits( Show Limits( 0 ) ) ),
Chart( Position( 2 ), Limits( Show Limits( 0 ) ) )
);
Code Explanation:
- Open data table;
- Create Control Chart Builder window.
- Set window size 528x464.
- Hide control panel.
- Hide capability report.
- Define subgroups: Gender, Age, BP.
- Set BMI as Y variable.
- Configure first chart for individual points.
- Disable point display.
- Disable connect line.
Example 28
Summary: Creates a control chart for a subgrouped response variable, utilizing the Control Chart Builder platform in JMP.
Code:
dt = Open("data_table.jmp");
dt << select rows( {38} ) << Hide << exclude;
dt << Control Chart Builder(
Size( 479, 376 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :age ), Y( :height ) ),
SendToReport( Dispatch( {}, "height Limit Summaries", OutlineBox, {Close( 1 )} ) )
);
Code Explanation:
- Open data table;
- Select row 38.
- Hide selected row.
- Exclude selected row.
- Create control chart.
- Set chart size.
- Hide control panel.
- Hide capability report.
- Define subgroup variable.
- Define response variable.
Example 29
Summary: Creates a Control Chart Builder with specific settings, selecting rows 4-7 and excluding them from the analysis.
Code:
dt = Open("data_table.jmp");
dt << select rows( {4, 5, 6, 7} ) << Hide << Exclude;
obj = dt << Control Chart Builder(
Size( 500, 400 ),
Show Control Panel( 0 ),
Show Excluded Region( 0 ),
Show Capability( 0 ),
Variables( Y( :height ) )
);
Code Explanation:
- Open data table;
- Select rows 4-7.
- Hide selected rows.
- Exclude selected rows.
- Create Control Chart Builder.
- Set size to 500x400.
- Hide control panel.
- Hide excluded region.
- Hide capability.
- Add height variable to Y.
Example 30
Summary: Creates a control chart builder object with specific settings for size, variables, and tests.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Size( 440, 340 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Day ), Y( :Delay ) ),
Chart(
Position( 1 ),
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ), Test 4( 1 ), Test 5( 1 ), Test 6( 1 ), Test 7( 1 ), Test 8( 1 ) )
)
);
Code Explanation:
- Open data table.
- Create control chart builder object.
- Set window size to 440x340.
- Hide control panel.
- Hide capability analysis.
- Define subgroup variable as Day.
- Define response variable as Delay.
- Add chart to control chart builder.
- Position chart at 1.
- Enable all eight control chart tests.
Example 31
Summary: Creates a control chart builder with individual points and box plots, enabling 2S and beyond limits warnings, and adding a local data filter to bias criteria.
Code:
Open("data_table.jmp");
Control Chart Builder(
Size( 534, 456 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Part ), Y( :Response ) ),
Chart( Position( 1 ), Points( Individual Points( 1 ), Box Plots( 1 ) ), Warnings( Rule 1 2S( 1 ), Test Beyond Limits( 1 ) ) ),
Chart( Position( 2 ), Limits( Sigma( "Standard Deviation" ) ), Warnings( Test Beyond Limits( 1 ) ) ),
Local Data Filter( Add Filter( columns( :Bias ), Where( :Bias >= -0.2333 & :Bias <= 1.1 ) ) )
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Set window size.
- Hide control panel.
- Hide capability analysis.
- Define subgroup and response variables.
- Add individual points and box plots.
- Enable 2S and beyond limits warnings.
- Add limits chart.
- Set sigma limits type.
- Enable beyond limits test.
- Add local data filter.
- Set bias filter criteria.
Example 32
Summary: Creates a Control Chart Builder with two charts, hiding control panel and capability analysis, and setting Y variable to 'pop-m'.
Code:
dt = Open("data_table.jmp");
Control Chart Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :Name( "pop- m" ) ) ),
Chart( Position( 1 ), Points( Show Points( 0 ) ), Warnings( Test 1( 1 ), ) ),
Chart( Position( 2 ), Points( Show Points( 0 ) ) )
);
Code Explanation:
- Open data table;
- Create Control Chart Builder.
- Set window size 534x464.
- Hide control panel.
- Hide capability analysis.
- Set Y variable to "pop- m".
- Add first chart.
- Position first chart at 1.
- Hide points in first chart.
- Enable Test 1 warning in first chart.
Example 33
Summary: Creates a Control Chart Builder with specified variables and settings, enabling users to visualize and analyze data.
Code:
Open("data_table.jmp") << Control Chart Builder(
Size( 531, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :Weight, :Weight 2 ) )
);
Code Explanation:
- Open data table;
- Launch Control Chart Builder.
- Set window size.
- Hide control panel.
- Hide capability report.
- Add variables to chart.
Example 34
Summary: Creates a control chart builder with a local data filter to analyze weight data from a specific sample range.
Code:
Open("data_table.jmp") << Control Chart Builder(
Size( 531, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :Weight 2 ) ),
Local Data Filter( Mode( Include( 0 ) ), Inverse( 1 ), Add Filter( columns( :Sample ), Where( :Sample >= 4.8 & :Sample <= 6 ) ) )
);
Code Explanation:
- Open data table.
- Launch Control Chart Builder.
- Set window size.
- Hide control panel.
- Hide capability analysis.
- Select variable for chart.
- Add local data filter.
- Set filter mode to exclude.
- Define filter condition.
- Apply filter to chart.
Example 35
Summary: Creates a Control Chart Builder to analyze lead data by region and state, with standard deviation points and limits based on standard deviation.
Code:
Open("data_table.jmp") << Control Chart Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Region ), Subgroup( :State, Position( 1 ) ), Y( :Lead ) ),
Chart( Position( 2 ), Points( Statistic( "Standard Deviation" ) ), Limits( Sigma( "Standard Deviation" ) ) )
);
Code Explanation:
- Open data_table data
- Initiate Control Chart Builder.
- Set window size to 534x464.
- Hide control panel.
- Hide capability report.
- Define Region as subgroup variable.
- Define State as subgroup variable.
- Set Lead as Y variable.
- Position chart at 2.
- Plot standard deviation points.
- Set limits based on standard deviation.
Example 36
Summary: Creates a Control Chart Builder with binomial limits, filtering data by Lot Size 2, and displaying alarm reports.
Code:
Open("data_table.jmp") << Control Chart Builder(
Size( 553, 402 ),
Show Control Panel( 0 ),
Show Alarm Report( 1 ),
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Subgroup( :Lot ), Y( :Name( "# defective" ) ), n Trials( :Lot Size ) ),
Chart( Points( Statistic( "Proportion" ) ), Limits( Sigma( "Binomial" ) ) ),
Local Data Filter( Add Filter( columns( :Lot Size 2 ), Where( :Lot Size 2 >= 373 & :Lot Size 2 <= 415 ) ) )
);
Code Explanation:
- Open data table;
- Launch Control Chart Builder.
- Set window size.
- Hide control panel.
- Show alarm report.
- Hide capability report.
- Use Shewhart attribute class.
- Define variables: subgroup, Y, and n Trials.
- Plot proportion points with binomial limits.
- Add local data filter for Lot Size 2.
Example 37
Summary: Creates a control chart builder object with specified window size, variables, and chart positions.
Code:
dt = Open("data_table.jmp");
dt << select rows( {1} ) << hide;
obj = dt << Control Chart Builder(
Size( 534, 450 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :age ), Y( :height ) ),
Chart( Position( 1 ) ),
Chart( Position( 2 ) )
);
Code Explanation:
- Open data table.
- Select first row.
- Hide selected row.
- Create control chart builder object.
- Set window size.
- Hide control panel.
- Hide capability report.
- Define subgroup variable.
- Define response variable.
- Add first chart position.
- Add second chart position.
Example 38
Summary: Creates a control chart builder with customized settings and text segments appearance, utilizing the Control Chart Builder platform in JMP.
Code:
dt = Open("data_table.jmp");
dt << select rows( [27] );
dt << Control Chart Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Run ), Y( :Force ), Phase( :Site ) ),
Chart( Position( 1 ), Points( Show Points( 0 ) ), Limits( Zones( 1 ) ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox,
{DispatchSeg( Text Seg( 4 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 5 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 6 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 7 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 8 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 9 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 10 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 11 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 12 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 13 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 14 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 15 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 16 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 17 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 18 ), {Line Color( "None" ), Fill Color( "None" )} )}
)
)
);
Code Explanation:
- Open data table.
- Select specific row.
- Create control chart builder.
- Set chart size.
- Hide control panel.
- Hide limit summaries.
- Hide capability report.
- Define variables for chart.
- Configure chart settings.
- Customize text segments appearance.
Example 39
Summary: Creates a Control Chart Builder with box plots, sigma limits, shaded zones, and warnings for quality control analysis.
Code:
Open("data_table.jmp") << Control Chart Builder(
Size( 534, 448 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :wafer ), Y( :NPN1 ) ),
Chart(
Position( 1 ),
Points( Box Plots( 1 ) ),
Limits( Sigma( "Median Moving Range" ), Zones( 1 ), Shade Zones( 1 ) ),
Warnings( Test Beyond Limits( 1 ) )
),
Chart( Position( 2 ), Warnings( Test Beyond Limits( 1 ) ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox,
Add Pin Annotation(
Seg( Box Plot Seg( 12 ) ),
Index( {1, 1} ),
Index Row( {1, 1} ),
UniqueID( -829695975 ),
FoundPt( {295, 188} ),
Origin( {11.0537190082645, 115.574343121707} ),
Offset( {17, -45} ),
RightOfCenter( 1 ),
Tag Line( 1 )
)
),
Dispatch( {}, "Control Chart Builder", FrameBox( 2 ),
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 11 ),
Index Row( 1154 ),
UniqueID( -863146973 ),
FoundPt( {292, 328} ),
Origin( {10.9049586776859, 17.0648788101501} ),
Offset( {-231, 78} ),
RightOfCenter( 1 ),
Tag Line( 1 )
)
)
)
);
Code Explanation:
- Open data table;
- Launch Control Chart Builder.
- Set window size.
- Hide control panel.
- Hide limit summaries.
- Hide capability report.
- Define subgroup and Y variables.
- Configure first chart: box plots, sigma limits, shaded zones, warnings.
- Configure second chart: warnings.
- Add pin annotations to both charts.
Example 40
Summary: Creates a control chart builder with box plots, sigma limits, and shaded zones for analyzing NPN1 data by wafer subgroup.
Code:
Open("data_table.jmp") << Control Chart Builder(
Size( 534, 448 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :wafer ), Y( :NPN1 ) ),
Chart(
Position( 1 ),
Points( Box Plots( 1 ) ),
Limits( Sigma( "Median Moving Range" ), Zones( 1 ), Shade Zones( 1 ) ),
Warnings( Test Beyond Limits( 1 ) )
),
Chart( Position( 2 ), Warnings( Test Beyond Limits( 1 ) ) )
);
Code Explanation:
- Open data table;
- Create control chart builder.
- Set window size.
- Hide control panel.
- Hide limit summaries.
- Hide capability report.
- Define variables: subgroup, Y.
- Add first chart: box plots, sigma limits, shaded zones.
- Enable test beyond limits for first chart.
- Add second chart: enable test beyond limits.
Example 41
Summary: Creates a control chart builder with customized settings, including window size, variable definitions, and text segment customization.
Code:
Open("data_table.jmp");
Control Chart Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Run ), Y( :Force ), Phase( :Site ) ),
Chart( Position( 1 ), Limits( Zones( 1 ), Shade Zones( 1 ) ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox,
{DispatchSeg( Text Seg( 4 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 5 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 6 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 7 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 8 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 9 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 10 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 11 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 12 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 13 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 14 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 15 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 16 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 17 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 18 ), {Line Color( "None" ), Fill Color( "None" )} )}
)
)
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Set window size.
- Hide control panel.
- Hide limit summaries.
- Hide capability report.
- Define variables for chart.
- Add chart position.
- Set limits and zones.
- Customize text segments.
Example 42
Summary: Creates a Control Chart Builder with individual points, limits set using moving range, and all warning tests enabled.
Code:
Open("data_table.jmp") << Control Chart Builder(
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Date ), Y( :Moving Average ) ),
Chart(
Position( 1 ),
Points( Statistic( "Individual" ) ),
Limits( Sigma( "Moving Range" ) ),
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ), Test 4( 1 ), Test 5( 1 ), Test 6( 1 ), Test 7( 1 ), Test 8( 1 ) )
),
Chart( Position( 2 ), Points( Statistic( "Moving Range" ) ), Limits( Sigma( "Moving Range" ) ) ),
Chart( Position( 3 ), Points( Statistic( "Moving Range" ) ), Limits( Sigma( "Moving Range" ) ) )
);
Code Explanation:
- Open data table.
- Launch Control Chart Builder.
- Hide control panel.
- Hide limit summaries.
- Hide capability analysis.
- Define subgroup variable.
- Define response variable.
- Add individual points chart.
- Set limits using moving range.
- Enable all warning tests.
Example 43
Summary: Creates a Control Chart Builder object to analyze data from a specific region, filtering by 'MW' and enabling animation for the Region column.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Y( :Name( "pop- m" ) ) ),
Chart(
Position( 1 ),
Limits( Zones( 1 ) ),
Warnings(
Test 1( 1 ),
Test 2( 1 ),
Test 3( 1 ),
Test 4( 1 ),
Test 5( 1 ),
Test 6( 1 ),
Test 7( 1 ),
Test 8( 1 ),
Rule 1 2S( 1 ),
Rule 1 3S( 1 ),
Rule 2 2S( 1 ),
Rule R 4S( 1 ),
Rule 4 1S( 1 ),
Rule 10 X( 1 ),
Test Beyond Limits( 1 )
)
),
Chart( Position( 2 ) ),
Local Data Filter( Mode, Add Filter( columns( :Region ), Where( :Region == "MW" ) ), Animation( Animate Column( :Region ) ) )
);
Code Explanation:
- Open data table;
- Create Control Chart Builder object.
- Hide capability analysis.
- Set Y variable to "pop- m".
- Add first chart.
- Position chart at 1.
- Enable zone limits.
- Configure multiple warning tests.
- Add second chart.
- Position chart at 2.
- Apply local data filter.
- Filter by Region "MW".
- Enable animation for Region column.
Example 44
Summary: Creates a Shewhart Attribute control chart for PM10 data, using Poisson sigma limits and applying specific warning rules.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Control Panel( 0 ),
Show Alarm Report( 1 ),
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Subgroup( :Region ), Y( :PM10 ) ),
Chart(
Points( Statistic( "Count" ) ),
Limits( Sigma( "Poisson" ) ),
Warnings( Rule 1 2S( 1 ), Rule 1 3S( 1 ), Rule 2 2S( 1 ), Rule R 4S( 1 ), Rule 4 1S( 1 ), Rule 10 X( 1 ) )
)
);
Code Explanation:
- Open data table.
- Create control chart builder object.
- Hide control panel.
- Show alarm report.
- Hide capability analysis.
- Set chart type to Shewhart Attribute.
- Define subgroup and Y variables.
- Plot count points.
- Use Poisson sigma limits.
- Apply specified warning rules.
Example 45
Summary: Creates a Shewhart Attribute control chart for PM10 data, filtered by specific states and displaying count statistics with Poisson distribution limits.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Control Panel( 0 ),
Show Alarm Report( 1 ),
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Subgroup( :Region ), Y( :PM10 ) ),
Chart(
Points( Statistic( "Count" ) ),
Limits( Sigma( "Poisson" ) ),
Warnings( Rule 1 2S( 1 ), Rule 1 3S( 1 ), Rule 2 2S( 1 ), Rule R 4S( 1 ), Rule 4 1S( 1 ), Rule 10 X( 1 ) )
)
);
dtFilter = obj << Local Data Filter(
Add Filter(
columns( :State ),
Where( :State == {"AZ", "CA", "CO", "CT", "DC", "DE", "FL", "GA", "IA", "IL", "IN", "KS"} ),
Display( :State, Size( 160, 225 ), List Display )
)
);
Code Explanation:
- Open data table;
- Create control chart builder object.
- Hide control panel.
- Show alarm report.
- Hide capability report.
- Set chart type to Shewhart Attribute.
- Define subgroup variable as "Region".
- Define Y variable as "PM10".
- Plot points with count statistic.
- Set limits using Poisson distribution.
- Add specific warning rules.
- Create local data filter for "State".
- Filter states: AZ, CA, CO, CT, DC, DE, FL, GA, IA, IL, IN, KS.
- Display filter with specified size and list display.
Example 46
Summary: Creates a control chart builder with specific settings, including subgroup and Y variables, to visualize data from an open JMP data table.
Code:
Open("data_table.jmp");
Control Chart Builder(
Size( 522, 448 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Hour ), Y( :Thickness ) ),
Chart( Position( 1 ), Points( Show Points( 0 ) ), Limits( Zones( 1 ) ), Warnings( Test 6( 1 ) ) ),
SendToReport( Dispatch( {}, "Thickness Limit Summaries", OutlineBox, {Close( 1 )} ) )
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Set window size.
- Hide control panel.
- Hide capability report.
- Define subgroup and Y variables.
- Add chart with specific settings.
- Disable point display.
- Enable zone limits.
- Apply test 6 warning.
Example 47
Summary: Creates a control chart builder object with specific settings, including hiding capability analysis and filtering data by Cavity column value.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :Hour ), Y( :Thickness ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ), ),
Chart( Position( 2 ) ),
Local Data Filter( Add Filter( columns( :Cavity ), Where( :Cavity == "4" ), Display( :Cavity, Size( 160, 68 ) ) ) )
);
Code Explanation:
- Open data table.
- Create control chart builder object.
- Hide capability analysis.
- Set subgroup variable to Hour.
- Set Y variable to Thickness.
- Add first chart position.
- Plot box plots for first chart.
- Add second chart position.
- Add local data filter.
- Filter Cavity column for value "4".
Example 48
Summary: Creates a control chart with box plots and moving range limits, filtering out specific samples and hiding capability statistics.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Excluded Region( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Sample ), Y( :Weight ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ), Limits( Sigma( "Median Moving Range" ) ) ),
Chart( Position( 2 ), Points( Statistic( "Moving Range on Std Dev" ) ), Limits( Sigma( "Median Moving Range" ) ) )
);
dt << select where( :Sample == 3 ) << exclude;
dt << select where( :Sample == 4 ) << hide;
dt << select where( :Sample == 5 ) << hide;
dt << select where( :Sample == 5 ) << exclude;
Code Explanation:
- Open data table.
- Create control chart object.
- Hide excluded region.
- Hide capability statistics.
- Set subgroup variable.
- Set response variable.
- Add box plot chart.
- Set limits using median moving range.
- Add moving range chart.
- Exclude specific samples.
Example 49
Summary: Creates a control chart builder with customized settings, including box plots and moving range charts, to analyze data from multiple samples.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Excluded Region( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Sample ), Y( :Weight ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ), Limits( Sigma( "Median Moving Range" ) ) ),
Chart( Position( 2 ), Points( Statistic( "Moving Range on Std Dev" ) ), Limits( Sigma( "Median Moving Range" ) ) )
);
dt << select where( :Sample == 3 ) << exclude;
dt << select where( :Sample == 4 ) << hide;
dt << select where( :Sample == 5 ) << hide;
dt << select where( :Sample == 5 ) << exclude;
dt << clear select;
Code Explanation:
- Open data table.
- Create control chart builder.
- Hide excluded region.
- Hide capability report.
- Set subgroup variable.
- Set Y variable.
- Add box plot chart.
- Set sigma limits.
- Add moving range chart.
- Set sigma limits.
Example 50
Summary: Creates a control chart builder with box plots and warning tests, filtered by race 'Other', using JMP's Control Chart Builder platform.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Y( :Grade ), Phase( :Grades ) ),
Set Subgroup Size( 5 ),
Chart(
Position( 1 ),
Points( Box Plots( 1 ) ),
Warnings(
Test 1( 1 ),
Test 2( 1 ),
Test 3( 1 ),
Test 4( 1 ),
Test 5( 1 ),
Test 6( 1 ),
Test 7( 1 ),
Test 8( 1 ),
Test Beyond Limits( 1 )
)
),
Chart( Position( 2 ) ),
Local Data Filter( Add Filter( columns( :Race ), Where( :Race == "Other" ) ) )
);
Code Explanation:
- Open table.
- Create control chart builder.
- Hide capability report.
- Set variables for analysis.
- Define subgroup size.
- Add box plot chart.
- Enable all warning tests.
- Add second chart.
- Apply local data filter.
- Filter by race "Other".
Example 51
Summary: Creates a control chart builder with box plots and moving range charts to analyze subgroup data, excluding specific rows and hiding unnecessary panels.
Code:
dt = Open("data_table.jmp");
myrs = dt << select where( :Sample == 3 );
dt << exclude;
dt << Control Chart Builder(
Size( 534, 456 ),
Show Control Panel( 0 ),
Show Excluded Region( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Sample ), Y( :Weight ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ), Limits( Sigma( "Median Moving Range" ) ) ),
Chart( Position( 2 ), Points( Statistic( "Moving Range on Std Dev" ) ), Limits( Sigma( "Median Moving Range" ) ) )
);
Code Explanation:
- Open data table.
- Select specific rows.
- Exclude selected rows.
- Create control chart builder.
- Set chart size.
- Hide control panel.
- Hide excluded region.
- Hide capability.
- Define subgroup and Y variables.
- Add box plot and moving range charts.
Example 52
Summary: Creates a control chart with two charts, configuring sample size and marker sizes for each chart.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Y( :Diameter1 ) ),
Set Sample Size( 5 ),
Chart( Position( 1 ), Points( Show Points( 0 ), Show Connect Line( 0 ) ) ),
Chart( Position( 2 ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox, {Marker Size( 2 )} ),
Dispatch( {}, "Control Chart Builder", FrameBox( 2 ), {Marker Size( 2 )} )
)
);
Code Explanation:
- Open data table.
- Create control chart object.
- Disable capability display.
- Set variable for diameter.
- Define sample size.
- Configure first chart settings.
- Add second chart.
- Adjust marker size for first chart.
- Adjust marker size for second chart.
- Save control chart object.
Example 53
Summary: Creates Control Chart Builders for two data tables, configuring variables and chart settings to visualize RstPulse, Oxy, Age and DIAMETER metrics.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Variables( Y( :RstPulse, :Oxy, :Age ) ),
Chart( Position( 1 ) ),
Chart( Position( 2 ) ),
SendToReport(
Dispatch( {}, "", ScaleBox, {Add Ref Line( 21, Solid, "Black", "", 2 )} ),
Dispatch( {}, "", ScaleBox( 5 ), {Add Ref Line( 21, Solid, "Black", "", 2 )} ),
Dispatch( {}, "", ScaleBox( 9 ), {Add Ref Line( 21, Solid, "Black", "", 2 )} )
)
);
dt2 = Open("data_table.jmp");
obj = dt2 << Control Chart Builder(
Show Capability( 0 ),
Variables( Y( :DIAMETER ) ),
Chart( Position( 1 ), Points( Show Connect Line( 0 ) ), Limits( Sigma( "Moving Range" ) ) ),
Chart( Position( 2 ), Limits( Sigma( "Moving Range" ) ) )
);
Code Explanation:
- Open data table.
- Create Control Chart Builder object.
- Add RstPulse, Oxy, Age variables.
- Position charts.
- Add reference line to first scale box.
- Add reference line to fifth scale box.
- Add reference line to ninth scale box.
- Open data table.
- Create Control Chart Builder object.
- Configure chart settings for DIAMETER variable.
Example 54
Summary: Creates a control chart builder object with specific settings, including disabling capability display, setting Y and phase variables, adding limits to the first chart, enabling warning tests, and filtering data for a specific day.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Y( :Delay ), Phase( :Reason ) ),
Chart(
Position( 1 ),
Limits,
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ), Test 4( 1 ), Test 5( 1 ), Test 6( 1 ), Test 7( 1 ), Test 8( 1 ) )
),
Chart( Position( 2 ) ),
Local Data Filter( Add Filter( columns( :Day ), Where( :Day == "24DEC88" ), Display( :Day, Size( 204, 191 ), List Display ) ) )
);
Code Explanation:
- Open data table.
- Create control chart builder object.
- Disable capability display.
- Set Y variable to Delay.
- Set phase variable to Reason.
- Add limits to first chart.
- Enable all warning tests.
- Add second chart.
- Add local data filter.
- Filter data for specific day.
Example 55
Summary: Creates two control charts from a data table, with customization options for variables and limits.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Y( :Delay ), Phase( :Reason ) ),
Chart(
Position( 1 ),
Limits,
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ), Test 4( 1 ), Test 5( 1 ), Test 6( 1 ), Test 7( 1 ), Test 8( 1 ) )
),
Chart( Position( 2 ) ),
Local Data Filter( Add Filter( columns( :Day ), Where( :Day == "24DEC88" ), Display( :Day, Size( 204, 191 ), List Display ) ) )
);
dt2 = Open("data_table.jmp");
obj2 = dt2 << Control Chart Builder( Variables( Subgroup( :Y ), Y( :Name( "pop- m" ), :Max deg. F Jan ) ) );
Code Explanation:
- Open data table;
- Create control chart.
- Hide capability report.
- Set Y variable to "Delay".
- Set phase variable to "Reason".
- Add limits chart.
- Enable all warning tests.
- Add second chart.
- Add local data filter.
- Filter for "24DEC88".
- Open data table;
- Create control chart.
- Set subgroup variable to "Y".
- Set Y variables to "pop- m" and "Max deg. F Jan".
Example 56
Summary: Creates a control chart builder object with specific variables and settings, including limits and warning tests.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Y( :Delay ), Phase( :Reason ) ),
Chart(
Position( 1 ),
Limits,
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ), Test 4( 1 ), Test 5( 1 ), Test 6( 1 ), Test 7( 1 ), Test 8( 1 ) )
),
Chart( Position( 2 ) ),
Local Data Filter( Add Filter( columns( :Day ), Where( :Day == "24DEC88" ), Display( :Day, Size( 204, 191 ), List Display ) ) )
);
dt2 = Open("data_table.jmp");
Code Explanation:
- Open data table.
- Create control chart builder object.
- Hide capability report.
- Set variables for delay and reason.
- Configure first chart position.
- Add limits to chart.
- Enable all warning tests.
- Configure second chart position.
- Add local data filter.
- Filter data for specific day.
- Open data table.
Example 57
Summary: Creates control charts for quality monitoring, filtering data by region and specific conditions, and sorting results by row order.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Variables( Subgroup( :State ), Y( :NO ) ),
Show Excluded Region( 0 ),
Local Data Filter( Add Filter( columns( :X ), Where( :X >= 0.1075 & :X <= 0.2 ) ) ),
Where( :Region == "MW" )
);
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Sort by Row Order( 1 ),
Show Capability( 0 ),
Variables( Subgroup( :Weight 2 ), Y( :Weight ), Phase( :Sample ) )
);
Code Explanation:
- Open data table.
- Create control chart for NO by State.
- Hide excluded region.
- Add local data filter for X.
- Filter where X is between 0.1075 and 0.2.
- Apply filter for Region == "MW".
- Open data table.
- Create control chart for Weight by Weight 2 and Sample.
- Sort by row order.
- Hide capability report.
Example 58
Summary: Creates a Control Chart Builder with customized settings, including hiding control panels and limit summaries, defining subgroup and response variables, and adding a text annotation.
Code:
Open("data_table.jmp");
Control Chart Builder(
Size( 522, 448 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :age ), Y( :height ) ),
SendToReport(
Dispatch( {}, "", GraphBuilderTitleBox( 3 ),
Add Text Annotation(
Text( "Here is an annotation with a yellow background
" ),
Fixed Size( 0 ),
Text Box( {33, -373, 264, -249} ),
Background Color( "Medium Light Yellow" )
)
)
)
);
Code Explanation:
- Open data table.
- Launch Control Chart Builder.
- Set window size.
- Hide control panel.
- Hide limit summaries.
- Hide capability analysis.
- Define subgroup variable.
- Define response variable.
- Add text annotation.
- Set annotation properties.
Example 59
Summary: Creates a control chart builder with customized settings, extracting and scaling a picture from the report as a bitmap.
Code:
dt = Open("data_table.jmp");
ccb = dt << Control Chart Builder(
Show Control Panel( 0 ),
Include Missing Categories( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Y( :IVP2 ) ),
Fit To Window( "On" )
);
p = Report( ccb )[Picture Box( 1 )] << Get Picture( Scale( 0.2 ), Type( "Bitmap" ) );
ccb << Close Window;
Code Explanation:
- Open data_table data
- Create control chart builder.
- Hide control panel.
- Exclude missing categories.
- Hide limit summaries.
- Hide capability analysis.
- Set Y variable.
- Fit to window.
- Extract picture from report.
- Scale picture to 20%.
- Save picture as bitmap.
- Close control chart window.
Example 60
Summary: Creates a control chart for IVP2, hiding the control panel and excluding missing categories, while extracting a thumbnail picture from the chart.
Code:
dt = Open("data_table.jmp");
ccb = dt << Control Chart Builder(
Show Control Panel( 0 ),
Include Missing Categories( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Y( :IVP2 ) ),
Fit To Window( "On" )
);
p = Report( ccb )[Picture Box( 1 )] << Get Picture( Scale( 0.2 ), Type( "Bitmap" ) );
ccb << Close Window;
New Window( "thumbnail", Picture Box( p ) );
Code Explanation:
- Open data_table data
- Build control chart for IVP2.
- Hide control panel.
- Exclude missing categories.
- Hide limit summaries.
- Hide capability report.
- Fit chart to window.
- Extract picture from chart.
- Scale picture to 0.2.
- Create new window with thumbnail.
Example 61
Summary: Creates a control chart builder with specific settings and adds a text annotation to the report.
Code:
Open("data_table.jmp");
Control Chart Builder(
Size( 522, 448 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :age ), Y( :height ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox,
Add Text Annotation(
Text( "Here is an annotation
" ),
Fixed Size( 0 ),
Text Box( {19, 22, 216, 85} ),
Background Color( "Light YellowGreen" )
)
)
)
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Set window size.
- Hide control panel.
- Hide limit summaries.
- Hide capability report.
- Define subgroup and Y variables.
- Send report to control chart.
- Add text annotation.
- Set annotation properties.
Example 62
Summary: Creates a Control Chart Builder with sigma limits for Acid data, customizing report formatting and hiding control panel and capability reports.
Code:
dt = Open("data_table.jmp");
Control Chart Builder(
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :Acid ) ),
Chart( Position( 1 ), Limits( Sigma ) ),
Chart( Position( 2 ), Limits( Sigma ) ),
SendToReport(
Dispatch( {}, "Acid", ScaleBox,
{Format( "Custom", Formula( If( Modulo( value, 2 ) == 0, Trim( " is even " ), Collapse Whitespace( " is odd" ) ) ), 10 ),
Min( 7 ), Max( 17 ), Inc( 1 ), Minor Ticks( 1 )}
)
)
);
Code Explanation:
- Open data table;
- Create Control Chart Builder.
- Hide control panel.
- Hide capability report.
- Set Y variable to Acid.
- Add chart with sigma limits.
- Add another chart with sigma limits.
- Customize report.
- Format Acid scale.
- Apply custom formatting rules.
Example 63
Summary: Creates a control chart builder with customized settings, including size, variables, and limits, to visualize data from a specific data table.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Size( 528, 450 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Hour ), Y( :Thickness ) ),
Chart( Position( 1 ), Limits( Zones( 1 ) ), Warnings( Rule R 4S( 1 ) ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox,
Add Pin Annotation(
Seg( Marker Seg( 1 ) ),
Index( 4 ),
Index Row( 80 ),
UniqueID( 614619044 ),
FoundPt( {166, 277} ),
Origin( {4.04545454545455, 7.40522938156976} ),
Tag Line( 1 )
)
)
)
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Set chart size.
- Hide control panel.
- Hide capability report.
- Define variables: subgroup and response.
- Configure chart position.
- Set limits and warnings.
- Add pin annotation.
- Customize annotation properties.
Example 64
Summary: Creates two control charts with customized settings, including subgrouping by age and filtering local data for a specific value.
Code:
dt = Open("data_table.jmp");
dt << Control Chart Builder(
Size( 534, 450 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Show Limit Summaries( 0 ),
Variables( Subgroup( :age ), Y( :height ) )
);
dt << Control Chart Builder(
Size( 522, 452 ),
Show Two Shewhart Charts( 0 ),
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Variables( Y( :height ) ),
Set Subgroup Size( 5 ),
Chart(
Points( Statistic( "Average" ) ),
Limits( Sigma( "Range" ) ),
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ), Test 4( 1 ), Test 5( 1 ), Test 6( 1 ), Test 7( 1 ), Test 8( 1 ) )
),
Local Data Filter( Add Filter( columns( :age ), Where( :age == 15 ), Display( :age, N Items( 6 ) ) ) )
);
Code Explanation:
- Open data table;
- Create control chart.
- Hide control panel.
- Hide capability report.
- Hide limit summaries.
- Use age as subgroup.
- Use height as Y variable.
- Create another control chart.
- Disable two Shewhart charts.
- Apply local data filter for age 15.
Example 65
Summary: Creates a Control Chart Builder with customized reference lines and frame box text segments, utilizing the provided data table.
Code:
dt = Open("data_table.jmp");
Control Chart Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :DAY ), Y( :DIAMETER ), Phase( :Phase ) ),
Chart( Position( 1 ), Warnings( Test Beyond Limits( 1 ) ) ),
Chart( Position( 2 ) ),
SendToReport(
Dispatch( {}, "@Subgroup_number", ScaleBox,
{Add Ref Line( {-0.5, 19.5}, "Solid", "Light Yellow", "", 1 ), Add Ref Line(
{19.5, 39.5},
"Solid",
"Light BlueCyan",
"",
1,
0.4
)}
),
Dispatch( {}, "Control Chart Builder", FrameBox,
{DispatchSeg( Text Seg( 3 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 4 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 5 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 6 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 7 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 8 ),
{Line Color( "None" ), Fill Color( "None" )}
)}
)
)
);
Code Explanation:
- Open data table;
- Create Control Chart Builder.
- Set window size to 534x464.
- Hide control panel.
- Hide capability report.
- Define subgroup, Y variable, and phase.
- Add first chart with warnings.
- Add second chart.
- Add reference lines to scale box.
- Customize frame box text segments.
Example 66
Summary: Creates a Shewhart Attribute control chart to monitor the proportion of defective items in a production process, utilizing local data filtering and binomial limits.
Code:
dt = Open("data_table.jmp");
Control Chart Builder(
Show Control Panel( 0 ),
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Subgroup( :Lot ), Y( :Name( "# defective" ) ), n Trials( :Lot Size ) ),
Chart( Points( Statistic( "Proportion" ) ), Limits( Sigma( "Binomial" ) ) ),
Local Data Filter(
Auto clear( 1 ),
Mode( Include( 0 ) ),
Add Filter( columns( :Lot Size 2 ), Where( :Lot Size 2 >= 370.19 & :Lot Size 2 <= 415 ), Display( :Lot Size 2, Size( 106, 50 ) ) )
)
);
Code Explanation:
- Open data table.
- Create control chart builder.
- Hide control panel.
- Hide capability report.
- Set chart type to Shewhart Attribute.
- Define subgroup and variables.
- Plot proportion points.
- Use binomial limits.
- Enable local data filter.
- Configure filter settings.
Example 67
Summary: Creates a Control Chart Builder with two charts, defining subgroup and response variables, and hiding control panel and capability reports.
Code:
Open("data_table.jmp");
Control Chart Builder(
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Day ), Y( :Delay ) ),
Chart( Position( 1 ) ),
Chart( Position( 2 ) )
);
Code Explanation:
- Open data table;
- Launch Control Chart Builder.
- Hide control panel.
- Hide capability report.
- Define subgroup variable.
- Define response variable.
- Add first chart.
- Add second chart.
Example 68
Summary: Creates and analyzes a control chart for Acid data, hiding control panel and capability analysis, setting missing value codes, and generating a report with average Acid values.
Code:
dt = Open("data_table.jmp");
obj = Control Chart Builder(
Show Control Panel( 0 ),
Show Capability( 0 ),
Variables( Y( :Acid ) ),
Chart( Position( 1 ) ),
Chart( Position( 2 ) )
);
:Acid << Set Property( "Missing Value Codes", 16.2 );
obj2 = obj << Redo Analysis;
rpt = obj2 << Report;
avgAcid = (rpt[Number Col Box( 2 )] << Get( 1 ));
Code Explanation:
- Open data table;
- Create control chart object.
- Hide control panel.
- Hide capability analysis.
- Set Y variable to Acid.
- Add first chart.
- Add second chart.
- Set missing value code for Acid.
- Redo analysis on object.
- Generate report from object.
- Extract average Acid value.
Example 69
Summary: Creates two control charts from a subsetted table, utilizing local data filters and box plot charts to visualize subgroup and Y variable relationships.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :Hour ), Y( :Thickness ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ), ),
Chart( Position( 2 ) ),
Local Data Filter( Add Filter( columns( :Cavity ), Where( :Cavity == "1" ), Display( :Cavity, Size( 160, 68 ) ) ) )
);
rpt = obj << report;
dtSub = dt << Subset(
Selected Rows( 0 ),
Rows(
[1, 2, 3, 4, 5, 21, 22, 23, 24, 25, 41, 42, 43, 44, 45, 61, 62, 63, 64, 65, 81, 82, 83, 84, 85, 101, 102, 103, 104, 105, 121, 122,
123, 124, 125, 141, 142, 143, 144, 145, 161, 162, 163, 164, 165, 181, 182, 183, 184, 185, 201, 202, 203, 204, 205, 221, 222, 223,
224, 225, 241, 242, 243, 244, 245, 261, 262, 263, 264, 265, 281, 282, 283, 284, 285, 301, 302, 303, 304, 305, 321, 322, 323, 324,
325, 341, 342, 343, 344, 345, 361, 362, 363, 364, 365, 381, 382, 383, 384, 385]
),
Selected columns only( 0 )
);
obj2 = dtSub << Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :Hour ), Y( :Thickness ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ), ),
Chart( Position( 2 ) )
);
rpt2 = obj2 << report;
Code Explanation:
- Open table.
- Create control chart.
- Hide capability report.
- Set subgroup and Y variables.
- Add box plot chart.
- Add another chart.
- Add local data filter.
- Generate report.
- Subset table.
- Create second control chart.
Example 70
Summary: Creates a Shewhart attribute control chart with count statistic and sigma limits, while adding a new row to the data table.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Y( :HBars ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma ) )
);
dt << add rows( 1 );
Column( dt, "HBars" )[9] = "off";
Code Explanation:
- Open data table.
- Create control chart builder object.
- Hide capability report.
- Set chart type to Shewhart attribute.
- Define Y variable as HBars.
- Plot points with count statistic.
- Add limits based on sigma.
- Add new row to data table.
- Set HBars value for ninth row to "off".
Example 71
Summary: Creates a Control Chart Builder object to visualize and analyze diameter data by day, with multiple charts displaying average, individual points, box plots, range, and standard deviation statistics.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :DAY ), Y( :DIAMETER ) ),
Chart( Position( 1 ), Points( Statistic( "Average" ), Individual Points( 1 ), Box Plots( 1 ) ), Limits( Sigma( "Range" ) ) ),
Chart(
Position( 2 ),
Points( Statistic( "Average" ), Individual Points( 1 ), Box Plots( 1 ) ),
Limits( Sigma( "Standard Deviation" ) )
),
Chart( Position( 3 ), Points( Statistic( "Range" ) ), Limits( Sigma( "Range" ), Show Center Line( 0 ) ) ),
Chart( Position( 4 ), Points( Statistic( "Standard Deviation" ) ), Limits( Sigma( "Standard Deviation" ) ) )
);
rpt = obj << report;
Code Explanation:
- Open data table;
- Create Control Chart Builder object.
- Hide capability report.
- Set subgroup variable as :DAY.
- Set Y variable as :DIAMETER.
- Add first chart with average, individual points, and box plots.
- Use range for limits.
- Add second chart with average, individual points, and box plots.
- Use standard deviation for limits.
- Add third chart with range statistic.
- Use range for limits.
- Hide center line.
- Add fourth chart with standard deviation statistic.
- Use standard deviation for limits.
- Generate report from object.
Example 72
Summary: Creates a Shewhart Attribute control chart to monitor flight counts by day, utilizing binomial limits and hiding capability reports.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Subgroup( :Day ), Y( :Flight ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma( "Binomial" ) ) )
);
dt << select all rows << delete rows;
Code Explanation:
- Open data table.
- Create Control Chart Builder object.
- Hide capability report.
- Set chart type to Shewhart Attribute.
- Define Day as subgroup variable.
- Define Flight as Y variable.
- Plot count statistic points.
- Use binomial limits.
- Select all rows in data table.
- Delete selected rows.
Example 73
Summary: Creates a Shewhart attribute control chart with count statistic and Poisson limits for sigma, using the Control Chart Builder platform in JMP.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Y( :label ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma( "Poisson" ) ) )
);
ccbb = Report( obj )[Graph Builder Box( 1 )];
ccbb << Add Variable( {:Mean, Role( "Subgroup" )} );
Code Explanation:
- Open data table;
- Create control chart builder object.
- Disable capability display.
- Set chart type to Shewhart attribute.
- Assign variable for analysis.
- Configure chart with count statistic.
- Use Poisson limits for sigma.
- Retrieve graph builder box from report.
- Add mean variable to chart.
- Assign role as subgroup for mean.
Example 74
Summary: Creates a control chart for height, hiding capability reports and storing the object for further analysis.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder( Show Capability( 0 ), Variables( Y( :height ) ) );
rpt = obj << report;
Code Explanation:
- Open data table;
- Create control chart for height.
- Hide capability report.
- Store control chart object.
- Generate report from object.
- Store report object.
Example 75
Summary: Creates a control chart builder object to visualize and analyze data, hiding control panels and capability reports while adding custom annotations.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Control Panel( 0 ),
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Subgroup( :Lot ), Y( :Name( "# defective" ) ), n Trials( :Lot Size ) ),
Chart( Points( Statistic( "Proportion" ) ), Limits( Sigma( "Binomial" ) ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox, {Add Simple Shape Annotation( Oval( {409, 270, 450, 300} ), Color( "Blue" ) )} )
)
);
obj << SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox,
{Add Line Annotation( Line( {364, 37}, {428, 112} ), Color( "Blue" ) ), Add Text Annotation(
Text( "tt" ),
Fixed Size( 1 ),
Text Box( {397, 144, 447, 189} ),
Filled( 0 )
), Add Polygon Annotation(
Points( {445, 28}, {449, 102}, {438, 160}, {393, 189}, {413, 218}, {460, 225}, {469, 209}, {442, 174} ),
Color( "Blue" )
), Add Simple Shape Annotation( Oval( {409, 270, 450, 300} ), Color( "Blue" ) )}
)
);
obj << redo analysis;
Code Explanation:
- Open data table.
- Create control chart builder object.
- Hide control panel.
- Hide capability report.
- Set chart type to Shewhart attribute.
- Define subgroup, Y variable, and trials.
- Plot proportion points and binomial limits.
- Add oval annotation.
- Add line annotation.
- Add text annotation.
- Add polygon annotation.
- Redo analysis.
Example 76
Summary: Creates a control chart builder object to visualize time data by flight number, with average points displayed and individual points enabled.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Show Two Shewhart Charts( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Flight Number ), Y( :Time ) ),
Chart( Points( Statistic( "Average" ), Individual Points( 1 ), Show Connect Line( 0 ) ), Limits( Sigma( "Moving Range" ) ) ),
SendToReport( Dispatch( {}, "Time", ScaleBox, {Min( 0 ), Max( 180000 ), Interval( "Hour" ), Inc( 5 ), Minor Ticks( 1 )} ) )
);
after = Today();
Code Explanation:
- Open data table;
- Create control chart builder object.
- Hide two Shewhart charts.
- Hide capability analysis.
- Set subgroup variable to Flight Number.
- Set Y variable to Time.
- Display average points.
- Enable individual points display.
- Disable connect lines.
- Use moving range for limits.
Example 77
Summary: Creates a control chart for height data, hiding capability reports and adding two charts with specific settings.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder( Show Capability( 0 ), Variables( Y( :height ) ), Chart( Position( 1 ) ), Chart( Position( 2 ) ) );
Code Explanation:
- Open data table;
- Create control chart object.
- Hide capability report.
- Set Y variable to height.
- Add first chart.
- Add second chart.
Example 78
Summary: Creates a control chart and process capability report for skull length data, utilizing Control Chart Builder and Process Capability platforms in JMP.
Code:
dt = Open("data_table.jmp");
obj = dt << Control Chart Builder(
Include Missing Categories( 0 ),
Variables( Subgroup( :species ), Y( :skull length ) ),
Chart(
Position( 1 ),
Warnings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ), Test 4( 1 ), Test 5( 1 ), Test 6( 1 ), Test 7( 1 ), Test 8( 1 ) ),
Add Spec Limits( {LSL( 355 ), USL( 400 ), Target( 370 )} )
),
Chart( Position( 2 ) ),
Sort by subgroup
);
obj2 = dt << Process Capability(
Process Variables( :skull length[:species] ),
Spec Limits( skull length( LSL( 355 ), Target( 370 ), USL( 400 ) ) ),
Within Subgroup Variation( "Average of Ranges" ),
Individual Detail Reports( 1 ),
Capability Box Plots( 1 ),
Goal Plot( 1 )
);
rpt = obj << repot;
rpt2 = obj2 << report;
Code Explanation:
- Open data table;
- Create control chart builder.
- Exclude missing categories.
- Set subgroup variable.
- Set Y variable.
- Position first chart.
- Enable all warning tests.
- Add specification limits.
- Position second chart.
- Sort by subgroup.
- Generate process capability report.
- Set process variables.
- Define specification limits.
- Use average of ranges.
- Enable individual detail reports.
- Enable capability box plots.
- Enable goal plot.
- Retrieve control chart report.
- Retrieve process capability report.
Capability using Column
Example 1
Summary: Opens a data table, sets spec limits for the 'height' column, creates a distribution analysis, and adds process capability analysis with reference lines.
Code:
dt = Open("data_table.jmp");
Column( dt, "height" ) << Set Property( "Spec Limits", {LSL( 50 ), USL( 65 ), Target( 57 )} );
dist = dt << Distribution( Continuous Distribution( Column( :height ) ) );
dist << Process Capability( "Use Column Property Specs", "Show as Graph
Reference Lines" );
Code Explanation:
- Open data table.
- Set spec limits for height.
- Create distribution analysis for height.
- Add process capability analysis.
- Use column property specs.
- Show graph with reference lines.
Example 2
Summary: Calculates process capability analysis for the 'height' column in a data table, utilizing spec limits and displaying reference lines on a graph.
Code:
Names Default To Here( 1 );
dt = Open("data_table.jmp");
Column( dt, "height" ) << Set Property( "Spec Limits", {LSL( 50 ), USL( 65 ), Target( 57 )} );
dist = dt << Distribution( Continuous Distribution( Column( :height ) ) );
dist << Process Capability( "Use Column Property Specs", "Show as Graph
Reference Lines" );
Report( dist )["Process Capability"] << Close( 1 );
Code Explanation:
- Set default names scope.
- Open data table.
- Set spec limits for "height" column.
- Create distribution analysis for "height".
- Add process capability analysis.
- Use column property specs.
- Show as graph and reference lines.
- Close process capability report.
Example 3
Summary: Creates a control chart builder object with box plots to visualize and analyze data, utilizing variables for subgrouping, Y-axis values, and phase.
Code:
dt = Open("data_table.jmp");
Column( dt, "Phase" ) << Delete property( "Value Order" );
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Show Control Panel( 0 ),
Variables( Subgroup( :DAY ), Y( :DIAMETER ), Phase( :Phase ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ) ),
Chart( Position( 2 ) )
);
Code Explanation:
- Open data table.
- Delete "Value Order" property.
- Create control chart builder object.
- Hide capability report.
- Hide control panel.
- Define variables: subgroup, Y, phase.
- Add first chart: box plots.
- Add second chart placeholder.
- Build control chart.
- Display control chart.
Example 4
Summary: Creates a control chart builder with box plots for multivariate analysis, hiding selected rows and panels.
Code:
dt = Open("data_table.jmp");
Column( dt, "Phase" ) << Delete property( "Value Order" );
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Show Control Panel( 0 ),
Variables( Subgroup( :DAY ), Y( :DIAMETER ), Phase( :Phase ) ),
Chart( Position( 1 ), Points( Box Plots( 1 ) ) ),
Chart( Position( 2 ) )
);
dt << select rows( {235, 236, 237, 238, 239, 240} ) << hide;
Code Explanation:
- Open data table;
- Delete "Value Order" property from Phase column.
- Create Control Chart Builder object.
- Hide Capability panel.
- Hide Control Panel.
- Set Subgroup variable to DAY.
- Set Y variable to DIAMETER.
- Set Phase variable to Phase.
- Add Box Plot chart at position 1.
- Hide selected rows 235-240.
Example 5
Summary: Creates a control chart builder with local data filtering and reporting for ordinal data, utilizing Control Chart Builder and Local Data Filter platforms.
Code:
dt = Open("data_table.jmp");
Column( dt, "Sample" ) << set modeling type( "ordinal" );
obj = dt << Control Chart Builder(
Show Excluded Region( 0 ),
Use Event Chooser( 1 ),
Show Capability( 0 ),
Class( Shewhart Attribute ),
Variables( Y( :Sample ), Phase( :Phase ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma( "Poisson" ) ) )
);
ldf = obj << Local Data Filter(
Add Filter( columns( :Sample ), Where( :Sample == {2, 3, 4, 5, 6, 7} ), Display( :Sample, Size( 143, 255 ), "List Display" ) )
);
rpt = obj << report;
ldf << (Filter Column( :Sample ) << Where( :Sample == {10, 11, 12, 13, 14, 15, 16} ));
rpt = obj << report;
Code Explanation:
- Open table.
- Set "Sample" as ordinal.
- Create control chart builder.
- Configure chart settings.
- Add local data filter.
- Set initial filter criteria.
- Generate report.
- Update filter criteria.
- Regenerate report.
Example 6
Summary: Analyzes and creates reports for distribution properties for a continuous column, including generating reports for weight and Weibull quantiles.
Code:
dt = Open("data_table.jmp");
Column( dt, "weight" ) << Set Property( "Spec Limits", {LSL( 130 )} );
obj = dt << Distribution(
Stack( 1 ),
Continuous Distribution( Column( :weight ), Horizontal Layout( 1 ), Vertical( 0 ), Process Capability( 1, Use Column Property Specs ) )
);
rpt = obj << report;
Close( dt, No Save );
Random Reset( 12345 );
dt7 = New Table( "Test", AddRows( 1000 ), New Column( "U", Formula( Random Uniform() ) ) );
dt7 = (dt7 << Sort( By( :U ), Replace Table ));
dt7 << New Column( "Y beta", Formula( Weibull Quantile( :U, 5 ) ) );
obj = dt7 << Distribution(
Stack( 1 ),
Continuous Distribution( Column( Column( dt7, 2 ) ) ),
Quantiles( 0 ),
Moments( 0 ),
Horizontal Layout( 1 ),
Vertical( 0 ),
Fit Distribution( Weibull with threshold )
);
rpt = obj << report;
Code Explanation:
- Open data table.
- Set lower spec limit for weight.
- Generate distribution report for weight.
- Close table without saving.
- Reset random seed.
- Create new table with 1000 rows.
- Add column U with uniform random values.
- Sort table by column U.
- Add column Y beta with Weibull quantiles.
- Generate distribution report for Y beta.
Example 7
Summary: Creates a continuous distribution object for process capability analysis, utilizing the 'weight' column and specifying lower spec limits.
Code:
dt = Open("data_table.jmp");
Column( dt, "weight" ) << Set Property( "Spec Limits", {LSL( 130 )} );
obj = dt << Distribution(
Stack( 1 ),
Continuous Distribution( Column( :weight ), Horizontal Layout( 1 ), Vertical( 0 ), Process Capability( 1, Use Column Property Specs ) )
);
rpt = obj << report;
Code Explanation:
- Open table.
- Set lower spec limit.
- Create distribution object.
- Configure stack option.
- Add continuous distribution.
- Specify weight column.
- Set horizontal layout.
- Disable vertical layout.
- Enable process capability.
- Use column property specs.
Capability using For
Summary: Creates a Control Chart with moving range limits for continuous variables in a specified data table, utilizing the Control Chart Builder platform.
Code:
dt = Open("data_table.jmp");
For( i = 1, i <= 8, i++, :sex[i] = "" );
Control Chart Builder(
Show Capability( 0 ),
Variables( Subgroup( :sex ), Subgroup( :name, Position( 1 ) ), Y( :height ), Phase( :age ) ),
Chart( Position( 1 ), Limits( Sigma( "Moving Range" ) ) ),
Chart( Position( 2 ), Limits( Sigma( "Moving Range" ) ) )
);
Code Explanation:
- Open data table;
- Loop through first 8 rows.
- Set sex column values to empty.
- Launch Control Chart Builder.
- Hide capability analysis.
- Define subgroup variables.
- Define Y variable: height.
- Define phase variable: age.
- Create first chart with moving range limits.
- Create second chart with moving range limits.
Capability using Select Rows
Example 1
Summary: Creates a control chart builder object with customized settings, including size, variables, and local data filtering.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( {12} ) << exclude;
obj = dt << Control Chart Builder(
Size( 534, 464 ),
Show Control Panel( 0 ),
Show Excluded Region( 0 ),
Show Capability( 0 ),
Variables( Subgroup( :Run ), Y( :Force ), Phase( :Site ) ),
Chart( Position( 1 ), Points( Show Points( 0 ) ) ),
Local Data Filter( Add Filter( columns( :Site ), Where( :Site == {1, 3} ) ) ),
SendToReport(
Dispatch( {}, "Control Chart Builder", FrameBox,
{DispatchSeg( Text Seg( 3 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 4 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 5 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 6 ),
{Line Color( "None" ), Fill Color( "None" )}
), DispatchSeg( Text Seg( 7 ), {Line Color( "None" ), Fill Color( "None" )} ), DispatchSeg(
Text Seg( 8 ),
{Line Color( "None" ), Fill Color( "None" )}
)}
)
)
);
Code Explanation:
- Open data table.
- Exclude row 12.
- Create control chart builder object.
- Set chart size.
- Hide control panel.
- Hide excluded region.
- Hide capability report.
- Define variables for subgroup, Y, and phase.
- Configure chart position and points visibility.
- Add local data filter for Site.
Example 2
Summary: Creates a control chart builder with specific settings, excluding the first 20 rows and selecting the 36th row.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} ) << exclude;
dt << Clear Select();
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Class( Rare Event ),
Variables( Y( :height ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma( "Weibull" ) ), Warnings( Test Beyond Limits( 1 ) ) )
);
dt << select rows( {36} );
Code Explanation:
- Open data table;
- Exclude first 20 rows.
- Clear row selection.
- Create control chart builder.
- Disable capability display.
- Set rare event class.
- Add height variable.
- Configure chart settings.
- Select 36th row.
Example 3
Summary: Creates a control chart builder object with specific configuration settings, including rare event classification and Weibull limits.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} ) << exclude;
dt << Clear Select();
obj = dt << Control Chart Builder(
Show Capability( 0 ),
Class( Rare Event ),
Variables( Y( :height ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma( "Weibull" ) ), Warnings( Test Beyond Limits( 1 ) ) )
);
dt << select rows( {36} );
obj << Show Excluded Region( 0 );
Code Explanation:
- Open data table.
- Select first 20 rows.
- Exclude selected rows.
- Clear row selection.
- Create control chart builder object.
- Configure chart settings.
- Select row 36.
- Hide excluded region.
Example 4
Summary: Creates a control chart builder to analyze rare events, utilizing specific row selection and hiding/excluding techniques.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( [7 8 9] );
dt << Hide and Exclude;
Control Chart Builder(
Show Control Panel( 0 ),
Show Limit Summaries( 0 ),
Show Capability( 0 ),
Class( Rare Event ),
Variables( Subgroup( :Date of ADE ), Y( :Doses since Last ADE ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma( "Negative Binomial" ) ), Warnings( Test Beyond Limits( 1 ) ) )
);
Code Explanation:
- Open data table.
- Select specific rows.
- Hide and exclude selected rows.
- Create control chart builder.
- Disable control panel.
- Disable limit summaries.
- Disable capability display.
- Set chart type to rare event.
- Define subgroup and Y variables.
- Configure chart settings.
Example 5
Summary: Creates a Shewhart Attribute control chart for the 'sex' variable, utilizing JMP's Control Chart Builder platform.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( {5, 6, 7, 8, 9, 10} ) << exclude;
dt << Clear select;
obj = dt << Control Chart Builder(
Show Excluded Region( 1 ),
Show Capability( 0 ),
Class( "Shewhart Attribute" ),
Variables( Y( :sex ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma( "Poisson" ) ) )
);
Code Explanation:
- Open data table;
- Select rows 5-10.
- Exclude selected rows.
- Clear row selection.
- Create control chart builder.
- Show excluded region.
- Hide capability analysis.
- Set chart class to Shewhart Attribute.
- Add variable "sex".
- Configure chart with count statistic and Poisson limits.
Example 6
Summary: Creates a Shewhart attribute control chart for sex variable, utilizing Control Chart Builder and configuring chart with count points and Poisson limits.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( {5, 6, 7, 8, 9, 10} ) << exclude;
dt << Clear select;
obj = dt << Control Chart Builder(
Show Excluded Region( 1 ),
Show Capability( 0 ),
Class( "Shewhart Attribute" ),
Variables( Y( :sex ) ),
Chart( Points( Statistic( "Count" ) ), Limits( Sigma( "Poisson" ) ) )
);
obj << Show Excluded Region( 0 );
Code Explanation:
- Open data table.
- Select specific rows.
- Exclude selected rows.
- Clear row selection.
- Create control chart builder object.
- Show excluded region initially.
- Hide capability analysis.
- Set Shewhart attribute class.
- Add sex variable to Y axis.
- Configure chart with count points and Poisson limits.
Example 7
Summary: Creates a Control Chart Builder with specified subgroup variables and charts, excluding certain rows from analysis.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( {16, 17, 18, 19, 20, 28, 29, 35, 36} ) << exclude;
obj = dt << Control Chart Builder(
Show Excluded Region( 1 ),
Show Capability( 0 ),
Variables( Subgroup( :sex ), Subgroup( :age, Position( 1 ) ), Y( :height ) ),
Chart( Position( 1 ) ),
Chart( Position( 2 ) )
);
obj << Show Excluded Region( 0 );
dtsum = obj << Save summaries;
mymat = dtsum << get as matrix;
Code Explanation:
- Open data table;
- Exclude specified rows.
- Create Control Chart Builder.
- Show excluded region.
- Hide capability analysis.
- Set subgroup variables.
- Add first chart.
- Add second chart.
- Hide excluded region.
- Save summaries.
Example 8
Summary: Creates a control chart builder object with specific settings, excluding certain rows and saving summaries to a new table.
Code:
dt = Open("data_table.jmp");
dt << Select Rows( {16, 17, 18, 19, 20, 28, 29, 35, 36} ) << exclude;
obj = dt << Control Chart Builder(
Show Excluded Region( 1 ),
Show Capability( 0 ),
Variables( Subgroup( :sex ), Subgroup( :age, Position( 1 ) ), Y( :height ) ),
Chart( Position( 1 ) ),
Chart( Position( 2 ) )
);
obj << Show Excluded Region( 0 );
dtsum = obj << Save summaries;
mymat = dtsum << get as matrix;
For( i = 1, i <= N Rows( mymat ), i++,
j = i;
If( i >= 3, j = j + 3 );
);
Code Explanation:
- Open data table;
- Exclude specific rows.
- Create control chart builder object.
- Enable excluded region display.
- Disable capability display.
- Set subgroup and Y variables.
- Add first chart.
- Add second chart.
- Disable excluded region display.
- Save summaries to new table.
Example 1
Summary: Creates a capability object from a data table, utilizing default names for variables.
Code:
Names Default To Here( 1 );
dt = Open("data_table.jmp");
obj = Capability( Y( NPN1, PNP1, PNP2, NPN2, PNP3, NPN3 ) );
Code Explanation:
- Set default names.
- Open data table.
- Create capability object.
Example 2
Summary: Analyze and visualize data table variables, generating normalized box plots ordered by CPK ascending and sending the results to a report.
Code:
dt under test = Open("data_table.jmp");
obj = Capability(
Y( :PNP1, :PNP2, :NPN2, :PNP3, :IVP1, :PNP4, :NPN3, :IVP2 ),
Spec Limits(
PNP1( LSL( 164.389518443879 ), Target( 297.017932186294 ), USL( 429.64634592871 ) ),
PNP2( LSL( -136.122122529984 ), Target( 465.441998810449 ), USL( 1067.00612015088 ) ),
NPN2( LSL( 96.5938056459265 ), Target( 113.749001693573 ), USL( 130.90419774122 ) ),
PNP3( LSL( 118.677820430348 ), Target( 130.289793286446 ), USL( 141.901766142544 ) ),
IVP1( LSL( 59.6200689219354 ), Target( 63.4101104259706 ), USL( 67.2001519300058 ) ),
PNP4( LSL( -54.4319216800649 ), Target( 238.738593912193 ), USL( 531.90910950445 ) ),
NPN3( LSL( 97.317681821994 ), Target( 120.804672949535 ), USL( 144.291664077077 ) ),
IVP2( LSL( 139.200434284046 ), Target( 142.305190917181 ), USL( 145.409947550315 ) )
),
Normalized Box Plots( 1 ),
Capability Box Plots( 0 ),
Goal Plot( 0 ),
Order By( "CPK Ascending" ),
SendToReport( Dispatch( {}, "Capability", OutlineBox, {Set Title( "Normalized box Plots, Order By CPK Ascending" )} ) )
);
Code Explanation:
- Open data_table data
- Define variables for analysis.
- Set specification limits for each variable.
- Enable normalized box plots.
- Disable capability box plots.
- Disable goal plot.
- Order results by CPK ascending.
- Generate report.
- Set title for the report.
- Display report.
Example 3
Summary: Runs a capability analysis by opening a table, defining Y variables and spec limits, and generating reports with capability indices and individual detail reports.
Code:
dt under test = Open("data_table.jmp");
obj = Capability(
Y( :PNP1, :PNP2, :NPN2, :PNP3, :IVP1, :PNP4, :NPN3, :IVP2 ),
Spec Limits(
PNP1( LSL( 164.389518443879 ), Target( 297.017932186294 ), USL( 429.64634592871 ) ),
PNP2( LSL( -136.122122529984 ), Target( 465.441998810449 ), USL( 1067.00612015088 ) ),
NPN2( LSL( 96.5938056459265 ), Target( 113.749001693573 ), USL( 130.90419774122 ) ),
PNP3( LSL( 118.677820430348 ), Target( 130.289793286446 ), USL( 141.901766142544 ) ),
IVP1( LSL( 59.6200689219354 ), Target( 63.4101104259706 ), USL( 67.2001519300058 ) ),
PNP4( LSL( -54.4319216800649 ), Target( 238.738593912193 ), USL( 531.90910950445 ) ),
NPN3( LSL( 97.317681821994 ), Target( 120.804672949535 ), USL( 144.291664077077 ) ),
IVP2( LSL( 139.200434284046 ), Target( 142.305190917181 ), USL( 145.409947550315 ) )
),
Capability Indices Report( 1 ),
Individual Detail Reports( 1 ),
Capability Box Plots( 0 ),
Goal Plot( 0 ),
SendToReport( Dispatch( {}, "Capability", OutlineBox, {Set Title( "Capability Indices Report, Individual Detail Reports" )} ) )
);
Code Explanation:
- Open table.
- Define capability analysis.
- Set Y variables.
- Define spec limits.
- Enable capability indices report.
- Enable individual detail reports.
- Disable capability box plots.
- Disable goal plot.
- Rename report title.
- Execute capability analysis.
Example 4
Summary: Runs the capability analysis process by opening a data table, defining variables, setting specification limits, and executing the analysis on specified columns.
Code:
dt under test = Open("data_table.jmp");
obj = Capability(
Y( :PNP1, :PNP2, :NPN2, :PNP3, :IVP1, :PNP4, :NPN3, :IVP2 ),
Spec Limits(
PNP1( LSL( 164.389518443879 ), Target( 297.017932186294 ), USL( 429.64634592871 ) ),
PNP2( LSL( -136.122122529984 ), Target( 465.441998810449 ), USL( 1067.00612015088 ) ),
NPN2( LSL( 96.5938056459265 ), Target( 113.749001693573 ), USL( 130.90419774122 ) ),
PNP3( LSL( 118.677820430348 ), Target( 130.289793286446 ), USL( 141.901766142544 ) ),
IVP1( LSL( 59.6200689219354 ), Target( 63.4101104259706 ), USL( 67.2001519300058 ) ),
PNP4( LSL( -54.4319216800649 ), Target( 238.738593912193 ), USL( 531.90910950445 ) ),
NPN3( LSL( 97.317681821994 ), Target( 120.804672949535 ), USL( 144.291664077077 ) ),
IVP2( LSL( 139.200434284046 ), Target( 142.305190917181 ), USL( 145.409947550315 ) )
)
);
Code Explanation:
- Open data table.
- Define variables for capability analysis.
- Set specification limits for each variable.
- Execute capability analysis on specified columns.
Example 5
Summary: Runs the capability analysis for multiple variables, specifying limits and targets for each variable, and disables box plots.
Code:
dt under test = Open("data_table.jmp");
obj = Capability(
Y( :PNP1, :PNP2, :NPN2, :PNP3, :IVP1, :PNP4, :NPN3, :IVP2 ),
Spec Limits(
PNP1( LSL( 164.389518443879 ), Target( 297.017932186294 ), USL( 429.64634592871 ) ),
PNP2( LSL( -136.122122529984 ), Target( 465.441998810449 ), USL( 1067.00612015088 ) ),
NPN2( LSL( 96.5938056459265 ), Target( 113.749001693573 ), USL( 130.90419774122 ) ),
PNP3( LSL( 118.677820430348 ), Target( 130.289793286446 ), USL( 141.901766142544 ) ),
IVP1( LSL( 59.6200689219354 ), Target( 63.4101104259706 ), USL( 67.2001519300058 ) ),
PNP4( LSL( -54.4319216800649 ), Target( 238.738593912193 ), USL( 531.90910950445 ) ),
NPN3( LSL( 97.317681821994 ), Target( 120.804672949535 ), USL( 144.291664077077 ) ),
IVP2( LSL( 139.200434284046 ), Target( 142.305190917181 ), USL( 145.409947550315 ) )
),
Capability Box Plots( 0 )
);
Code Explanation:
- Open data table;
- Assign dataset to variable.
- Perform capability analysis.
- Specify Y variables.
- Define PNP1 spec limits.
- Define PNP2 spec limits.
- Define NPN2 spec limits.
- Define PNP3 spec limits.
- Define IVP1 spec limits.
- Define PNP4 spec limits.
- Define NPN3 spec limits.
- Define IVP2 spec limits.
- Disable capability box plots.
Example 6
Summary: Runs the capability analysis for a data table, defining LSL and USL limits for OZONE, CO, SO2, PM10, and NO variables.
Code:
dt = Open("data_table.jmp");
LSL = [., 4.5, 0.0014, 20.2, 0.015];
Target = [0.14, ., 0.05, 38.5, .];
USL = [0.33, 22.5, ., 57.1, 0.043];
obj = dt << Capability(
Y( :OZONE, :CO, :SO2, :PM10, :NO ),
Spec Limits(
OZONE( Target( Target[1] ), USL( USL[1] ) ),
CO( LSL( LSL[2] ), USL( USL[2] ) ),
SO2( LSL( LSL[3] ), Target( Target[3] ) ),
PM10( LSL( LSL[4] ), Target( Target[4] ), USL( USL[4] ) ),
NO( LSL( LSL[5] ), USL( USL[5] ) )
)
);
rpt = obj << report;
Code Explanation:
- Open data table;
- Define LSL array.
- Define Target array.
- Define USL array.
- Run Capability analysis.
- Set Y variables.
- Specify OZONE limits.
- Specify CO limits.
- Specify SO2 limits.
- Specify PM10 limits.
- Specify NO limits.
- Retrieve report object.
Capability using Set Property
Summary: Filters and visualizes customer data from the Movie Customers dataset, displaying a distribution plot for Order Year and a filtered list of rentals.
Code:
rentals = Open("data_table.jmp");
cust = Open("data_table.jmp");
inv = Open("data_table.jmp");
rentals:Customer ID << Set Property(
"Link Reference",
{Reference Table( "Movie Customers.jmp" ), Options(
Row States Synchronization with Referenced Table( Accept( 1 ), Row States( Select, Exclude, Hide ) )
)}
);
gdf = cust << Data Filter( Mode( Show( 1 ), Include( 1 ) ), Add Filter( columns( :Customer ID ), ) );
w = New Window( "test",
dfcb = Data Filter Context Box(
H List Box(
df = rentals << Data Filter(
Count Excluded Rows( 0 ),
Local,
Add Filter(
columns(
:Item Number,
:Order Year,
Referenced Column( "Rating[Item Number]", Reference( Column( :Item Number ), Reference( Column( :Rating ) ) ) )
),
Where( :Item Number >= 1070 ),
Where( :Order Year <= 2008.3333 ),
Where(
Referenced Column( "Rating[Item Number]", Reference( Column( :Item Number ), Reference( Column( :Rating ) ) ) ) ==
"PG"
),
Display(
Referenced Column( "Rating[Item Number]", Reference( Column( :Item Number ), Reference( Column( :Rating ) ) ) ),
N Items( 5 )
)
)
),
rentals << Distribution( Continuous Distribution( Column( :Order Year ), Outlier Box Plot( 0 ), Process Capability( 0 ) ) )
)
)
);
rs = df << Make Filter Change Handler(
Function( {a},
("Filter Change " || Char( a ));
dfcb << DeleteBox;
)
);
Code Explanation:
- Open data table;
- Open data table;
- Open data table;
- Link Customer ID to Movie Customers.jmp.
- Create data filter for customers.
- Create new window named "test".
- Add data filter context box to window.
- Add data filter for rentals.
- Add distribution plot for Order Year.
- Set up filter change handler.
Capability using Set Values
Summary: Creates and compares control charts with capability analysis, utilizing a custom data table and report generation.
Code:
dt = Open("data_table.jmp");
:Disso << Set Values( {99, 99, 99} );
obj = Control Chart(
Sample Label( :API Lot No ),
Group Size( 1 ),
KSigma( 3 ),
Chart Col(
:Disso,
Individual Measurement( Test 1( 1 ) ),
Capability(
Distribution(
Continuous Distribution(
Column( :Disso ),
Quantiles( 0 ),
Summary Statistics( 0 ),
Outlier Box Plot( 0 ),
Normal Quantile Plot( 1 ),
Capability Analysis( LSL( 70 ), Sigma( 3.49860483434369 ) )
)
)
)
)
);
rpt1 = obj << Report;
:Disso << Set Property( "Missing Value Codes", 99 );
obj2 = obj << Redo Analysis;
rpt = obj2 << Report;
a = rpt << get text;
b = rpt1 << get text;
ans = Equal( a, b );
Code Explanation:
- Open data table.
- Set values to 99.
- Create control chart.
- Set sample label.
- Define group size.
- Set KSigma to 3.
- Add chart column.
- Perform individual measurement.
- Enable capability analysis.
- Compare reports for equality.
Capability using New Window
Example 1
Summary: Creates a capability analysis for OZONE, CO, and SO2 variables in a data table, generating box plots and specification limits.
Code:
Open("data_table.jmp");
myCap = New Window( "Capability",
V List Box(
Capab = Capability(
Y( :OZONE, :CO, :SO2 ),
Capability Box Plots( 1 ),
Spec Limits( OZONE( LSL( 0 ), Target( 0.1 ), USL( 0.3 ) ), CO( Target( 7 ), USL( 20 ) ), SO2( LSL( 0 ), Target( 0.05 ) ) )
)
)
);
Capab << Make Summary Table( ara );
Close( Data Table( 1 ), No Save );
a = 1;
Code Explanation:
- Open data table.
- Create new window named "Capability".
- Add vertical list box to window.
- Generate capability analysis for OZONE, CO, SO2.
- Include capability box plots.
- Set specification limits for each variable.
- Make summary table from capability analysis.
- Close original data table without saving.
- Assign value 1 to variable a.
Example 2
Summary: Creates a capability analysis with box plots and specification limits for ozone, CO, and SO2 variables.
Code:
dt = Open("data_table.jmp");
myCap = New Window( "Capability",
V List Box(
Capab = Capability(
Y( :OZONE, :CO, :SO2 ),
Capability Box Plots( 1 ),
Spec Limits( OZONE( LSL( 0 ), Target( 0.1 ), USL( 0.3 ) ), CO( Target( 7 ), USL( 20 ) ), SO2( LSL( 0 ), Target( 0.05 ) ) )
)
)
);
Capab << Make Summary Table( ara );
Close( Data Table( 1 ), No Save );
a = 1;
Code Explanation:
- Open table.
- Create new window.
- Add vertical list box.
- Generate capability analysis.
- Set Y variables.
- Include capability box plots.
- Define spec limits.
- Create summary table.
- Close data table.
- Assign variable value.
Example 3
Summary: Runs the capability analysis for OZONE, CO, and SO2 variables in a data table, generating a summary table with box plots and specification limits.
Code:
Open("data_table.jmp");
myCap = New Window( "Capability",
V List Box(
Capab = Capability(
Y( :OZONE, :CO, :SO2 ),
Capability Box Plots( 1 ),
Spec Limits( OZONE( LSL( 0 ), Target( 0.1 ), USL( 0.3 ) ), CO( Target( 7 ), USL( 20 ) ), SO2( LSL( 0 ), Target( 0.05 ) ) )
)
)
);
Capab << Make Summary Table( ara );
Code Explanation:
- Open data table;
- Create new window named "Capability".
- Add vertical list box to window.
- Perform capability analysis on selected variables.
- Enable capability box plots.
- Set specification limits for OZONE.
- Set specification limits for CO.
- Set specification limits for SO2.
- Generate summary table from analysis.
- Store summary table in variable "ara".
Capability using Delete Property
Summary: Runs the analysis and reporting process for a continuous distribution of NPN1 data, utilizing Column Switcher to navigate through PNP1 and PNP2 columns.
Code:
dt = Open("data_table.jmp");
dt:PNP1 << Delete Property( "Spec Limits" );
obj = dt << Distribution( Continuous Distribution( Column( :NPN1 ), Always use column properties( 0 ), Process Capability( 0 ) ) );
cs = obj << Column Switcher( :NPN1, {:NPN1, :PNP1, :PNP2} );
cs << next;
cs << next;
cs << next;
rpt = obj << report;
Code Explanation:
- Open data_table data
- Delete PNP1 spec limits.
- Create distribution object for NPN1.
- Configure continuous distribution settings.
- Initialize column switcher with three columns.
- Switch to next column (NPN1).
- Switch to next column (PNP1).
- Switch to next column (PNP2).
- Generate report from distribution object.