Chapter Contents 
Previous 
Next 
UCHART Statement 
See SHWUCHR in the SAS/QC Sample Library 
A textile company
uses a u chart to monitor the number
of defects per square meter of fabric.
The fabric is spooled onto rolls as it is inspected for defects.
Each piece of fabric is one meter wide and 30 meters in length.
The following statements create a SAS data set
named FABRIC, which contains the defect counts for 20 rolls:
data fabric; input roll defects @@; datalines; 1 12 2 11 3 9 4 15 5 7 6 6 7 5 8 10 9 8 10 8 11 14 12 5 13 9 14 13 15 7 16 5 17 8 18 11 19 7 20 12 ;
A listing of FABRIC is shown in Figure 41.1.

There is a single observation per roll. The variable ROLL identifies the subgroup sample and is referred to as the subgroupvariable. The variable DEFECTS contains the number of nonconformities (defect count) for each subgroup sample and is referred to as the process variable (or process for short).
The following statements create the u chart shown in Figure 41.2:
title 'u Chart for Fabric Defects'; symbol v=dot c=vig; proc shewhart data=fabric; uchart defects*roll / subgroupn = 30 cframe = steel cinfill = ligr cconnect = vig coutfill = yellow; run;
This example illustrates the basic form of the UCHART statement. After the keyword UCHART, you specify the process to analyze (in this case, DEFECTS), followed by an asterisk and the subgroupvariable (ROLL). The SUBGROUPN= option specifies the number of inspection units in each subgroup sample and is required if the input data set is a DATA= data set. In this example, each square meter of fabric is an inspection unit, and each roll is a subgroup sample. The number of inspection units per subgroup can be thought of as the subgroup sample size.
You can use the SUBGROUPN= option to specify one of the following:
Options such as SUBGROUPN= are specified after the slash (/) in the UCHART statement. A complete list of options is presented in the "Syntax" section.
The input data set is specified with the DATA= option in the PROC SHEWHART statement.
Each point on the u chart represents the number of nonconformities per inspection unit for a particular subgroup. For instance, the value plotted for the first subgroup is 12/30=0.4 (since there are 12 defects on the first roll and this roll contains 30 square meters of fabric). By default, the control limits shown are 3 limits estimated from the data; the formulas for the limits are given at "Control Limits" . Since none of the points exceed the limits, the u chart indicates that the fabric manufacturing process is in statistical control.
See "Constructing Charts for Nonconformities per Unit (u Charts)" for details concerning u charts. For more details on reading defect count data, see "DATA= Data Set" .
Chapter Contents 
Previous 
Next 
Top 
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.