Manage Spec Limits
Manage Spec Limits using Add Rows
Summary: Process of applying specification limits to a data table, grouping by region, and generating a report.
Code:
dt = Open("data_table.jmp");
dtlimits = New Table( "Limits",
Add Rows( 4 ),
New Column( "Variable", Character, "Nominal", Set Values( {"OZONE", "CO", "SO2", "NO"} ) ),
New Column( "LSL", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [0.06, 4, 0.001, 0.012] ) ),
New Column( "Target", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [0.14, 8, 0.052, 0.026] ) ),
New Column( "USL", Numeric, "Continuous", Format( "Best", 12 ), Set Values( [0.33, 23, 0.095, 0.061] ) )
);
obj = dt << Manage Spec Limits( Y( :OZONE, :CO, :SO2, :NO ), Grouping( :Region ), Load from Limits Table( dtLimits ) );
rpt = obj << report;
Code Explanation:
- Open data table.
- Create new limits table.
- Define variable column.
- Define LSL values.
- Define target values.
- Define USL values.
- Apply spec limits to data.
- Group by region.
- Load limits from table.
- Generate report.
Summary: Creates a spec limits object for process variables height and weight in a data table.
Code:
dt = Open("data_table.jmp");
obj = dt << Manage Spec Limits( Process Variables( :height, :weight ) );
Code Explanation:
- Open data table;
- Create spec limits object.
- Set process variables to height and weight.