Standard Case: Manufacturing Process Capability Analysis
Scénario de test & Cas d'usage
Business Context
A manufacturing plant produces high-precision engine pistons. The engineering team needs to monitor the diameter of the pistons from a specific production line (Line A) to ensure the process is stable and capable of meeting strict design specifications. They want to identify any special causes of variation and calculate process capability indices (Cpk, Ppk).
Create two CAS tables: 'PistonDiameters' with diameter measurements from 25 subgroups (batches), and 'PistonSpecs' containing the engineering specification limits for the diameter.
Copied!
data mycas.PistonDiameters;\n do Batch = 1 to 25;\n do i = 1 to 10;\n /* Introduce a slight upward trend and one outlier */\n if Batch = 18 then Diameter = 100.15 + 0.08 * rannor(5678);\n else Diameter = 100.0 + (Batch * 0.001) + 0.05 * rannor(1234);\n output;\n end;\n end;\nrun;\n\ndata mycas.PistonSpecs;\n length _VAR_ $ 32;\n _VAR_ = 'Diameter';\n _LSL_ = 99.85;\n _USL_ = 100.15;\n _TARGET_ = 100.0;\nrun;
1
DATA mycas.PistonDiameters;
2
DO Batch = 1 to 25;
3
DO i = 1 to 10;
4
/* Introduce a slight upward trend and one outlier */
Run the boxChart action to generate control limits, apply special cause tests (Test 1 for outliers, Test 3 for trends), and calculate capability indices using the specification limits table. Save the control limits and the chart summary data.
Verify the output tables. Check the 'PistonLimits_01' table for the calculated control limits. Check the 'ChartSummary_01' table for subgroup statistics and any test failures. Check the 'CapabilityIndices_01' for Cpk values.
The action should execute successfully. The 'ChartSummary_01' table should flag Batch 18 for failing Test 1 (outlier) and potentially flag a sequence of points for failing Test 3 (trend). The 'CapabilityIndices_01' table should contain calculated capability metrics like Cpk, which will likely be poor due to the process instability shown by the failed tests. The 'PistonLimits_01' table will contain the sigma-based limits for the process.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.