Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
CCHART Statement

Example 33.2: Specifying a Known Expected Number of Nonconformities

See SHWCEX2 in the SAS/QC Sample Library

This example illustrates how you can create a c chart based on a known (standard) value u0 for the expected number of nonconformities per unit.

A c chart is used to monitor the number of paint defects per truck. The defect counts are provided as values of the variable DEFECTS in the data set TRUCKS given at "Creating c Charts from Defect Count Data" . Based on previous testing, it is known that u0=7. The following statements create a c chart with control limits derived from this value:

   title 'c Chart for Paint Defects on New Trucks';
   title2 'Usng Data in TRUCKS and Standard Value UO=7';
   symbol v=dot c=red;
   proc shewhart data=trucks;
      cchart defects*truckid / u0       = 7
                               csymbol  = c0
                               nolegend
                               nolimitslegend
                               nolimit0
                               cframe   = steel
                               cinfill  = ligr
                               coutfill = yellow
                               cconnect = red;
   run;

The chart is shown in Output 33.2.1. The U0= option specifies u0, and the CSYMBOL= option requests a label for the central line indicating that the line represents a standard value. The NOLEGEND option suppresses the legend for the subgroup sample size, and the NOLIMITSLEGEND option suppresses the legend for the control limits that appears by default in the upper right corner of the chart. The NOLIMIT0 option suppresses the display of the lower limit when it is equal to zero.

Output 33.2.1: A c Chart with Standard Value u0
cex2.gif (5834 bytes)

The number of paint defects on Truck Q1 exceeds the upper control limit, indicating that the process is out of control.

Alternatively, you can specify u0 as the value of the variable _U_ in a LIMITS= data set, as follows:

   data tlimits;
      length _subgrp_ _var_ _type_ $8;
      _U_      = 7;
      _subgrp_ = 'truckid';
      _var_    = 'defects';
      _limitn_ = 1;
      _type_   = 'STANDARD';

   proc shewhart data=trucks limits=tlimits;
      cchart defects*truckid / csymbol=c0
                               nolegend
                               nolimitslegend
                               nolimit0;
   run;

The chart produced by these statements is identical to the one in Output 33.2.1.

For further details, see "LIMITS= Data Set" .

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.