|
Chapter Contents |
Previous |
Next |
| CCHART Statement |
| See SHWCEX1 in the SAS/QC Sample Library |
This example illustrates how you can apply tests for
special causes to make c charts more sensitive to
special causes of variation.
Twenty trucks of the same model are inspected, and the
number of paint defects per truck is recorded.
The following statements create a SAS data set named
TRUCKS3:
data trucks3;
input truckid $ defects @@;
label truckid='Truck Identification Number'
defects='Number of Paint Defects';
cards;
B1 12 B2 4 B3 4 B4 3 B5 4
D1 2 D2 3 D3 3 D4 2 D9 4
M2 9 M6 13 L3 5 L4 4 L7 6
Z1 15 Z2 8 Z3 9 Z7 6 Z9 8
;
The following statements create a c chart and tabulate the
information on the chart. The chart and table are shown
in Output 30.1.1 and Output 30.1.2.
title1 'c Chart for Paint Defects in New Trucks';
title2 'Tests=1 to 4';
symbol v=dot c=red;
proc shewhart data=trucks3;
cchart defects*truckid / tests = 1 to 4
testlabel1 = 'Test=1 Signaled'
testlabel2 = 'Test=2 signaled'
testfont = swiss
ltests = 20
zonelabels
tabletests
tablelegend
cframe = steel
cinfill = ligr
coutfill = yellow
czones = vig
ltests = 20
ctests = dagr
cconnect = red;
run;
Output 30.1.1: Tests for Special Causes Displayed on c Chart
|
The ZONELABELS option requests zone lines and displays zone labels on the chart. The zones are used to define the tests. The LTESTS= option specifies the line type used to connect the points in a pattern for a test that is signaled. The TABLETESTS option requests a table of counts of nonconformities, subgroup sample sizes, and control limits, together with a column indicating the subgroups at which the tests are positive. The TABLELEGEND option adds a legend describing the tests that are positive.
Output 30.1.1 and Output 30.1.2 indicate that Test 1 is positive at Truck Z1 and Test 2 is positive at Truck D9.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.