Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Details and Examples

Example 29.1: Creating Before-and-After Pareto Charts

See PARETO7 in the SAS/QC Sample Library

During the manufacture of a metal-oxide semiconductor (MOS) capacitor, causes of failures were recorded before and after a tube in the diffusion furnace was cleaned. This information was saved in a SAS data set named FAILURE3.

   data failure3;
      length cause $ 16 stage $ 16 ;
      label  cause = 'Cause of Failure' ;
      input  stage $ 1-16 cause $ 19-34 counts;
      datalines;
   Before Cleaning   Contamination    14
   Before Cleaning   Corrosion         2
   Before Cleaning   Doping            1
   Before Cleaning   Metallization     2
   Before Cleaning   Miscellaneous     3
   Before Cleaning   Oxide Defect      8
   Before Cleaning   Silicon Defect    1
   After Cleaning    Doping            0
   After Cleaning    Corrosion         2
   After Cleaning    Metallization     4
   After Cleaning    Miscellaneous     2
   After Cleaning    Oxide Defect      1
   After Cleaning    Contamination    12
   After Cleaning    Silicon Defect    2
   ;

To compare distribution of failures before and after cleaning, you can create two separate Pareto charts, one for the observations in which STAGE is equal to Before Cleaning and one for the observations in which STAGE is equal to After Cleaning. You can do this with the BY statement.

   proc sort data=failure3;
      by stage;

   title 'Pareto Effect of Furnace Tube' ;
   proc pareto data=temp1;
      vbar cause / freq     = counts
                   angle    = -60
                   cframe   = ligr
                   cbars    = vigb
                   cconnect = salmon;
      by stage;
   run;
The SORT procedure sorts the observations in order of the values of STAGE. It is not necessary to sort by the values of CAUSE since this is done by the PARETO procedure. The two charts, displayed in Output 29.1.1 and Output 29.1.2, reveal a reduction in oxide defects after the tube was cleaned. This is a relative reduction, since the primary axes are scaled in percent units.

Output 29.1.1: "After" Analysis Using STAGE as a BY Variable
parex1a.gif (4933 bytes)

Output 29.1.2: "Before" Analysis Using STAGE as a BY Variable
parex1b.gif (4969 bytes)

In general, it is difficult to compare Pareto charts created with BY processing because their axes are not necessarily uniform. A better approach is to construct a comparative Pareto chart, as illustrated by the following statements:

   title 'Comparison of IC Failures' ;
   proc pareto data=failure3;
      vbar cause / class      = stage
                   freq       = counts
                   intertile  = 1.0
                   classkey   = 'Before Cleaning'
                   cframeside = ligr
                   cframe     = ligr
                   cbars      = vigb
                   cconnect   = salmon;
   run;
See PARETO8 in the SAS/QC Sample Library

The CLASS= option designates STAGE as a classification variable, and this directs the procedure to create the one-way comparative Pareto chart, shown in Output 29.1.3, that displays a component chart for each level of STAGE.

Output 29.1.3: Before-and-After Analysis Using Comparative Pareto Chart
parex1c.gif (5432 bytes)

In a comparative Pareto chart, there is always one special cell, called the key cell, in which the bars are displayed in decreasing order, and whose order determines the uniform horizontal axis used for all the cells. The key cell is positioned at the top of the chart. Here, the key cell is the set of observations for which STAGE equals Before Cleaning, as specified by the CLASSKEY= option. By default, the levels are sorted in the order determined by the ORDER1= option, and the key cell is the the level that occurs first in this order.

In many applications, it may be more revealing to base comparisons on counts rather than percents. The following statements construct a chart with a frequency scale:

   title 'Comparison of IC Failures' ;
   proc pareto data=failure3;
      vbar cause / class      = stage
                   freq       = counts
                   scale      = count
                   intertile  = 1.0
                   nlegend    = 'Total Circuits'
                   cframenleg = ywh
                   cprop      = yellow
                   classkey   = 'Before Cleaning'
                   cframe     = ligr
                   cbars      = vigb
                   cconnect   = salmon
                   cframeside = ligr;
   run;
The chart is shown in Output 29.1.4.

Output 29.1.4: Before-and-After Analysis Using Comparative Pareto Chart
parex1d.gif (5996 bytes)

Specifying SCALE=COUNT scales the primary vertical axis in frequency units. The NLEGEND= option adds a sample size legend, and the CFRAMENLEG= option frames the legend. The CPROP= option adds bars that indicate the proportion of total frequency represented by each cell. The INTERTILE= option separates the tiles with a small offset.

Note that the lower cumulative percent curve in Output 29.1.4 is not anchored to the first bar. This is a consequence of the uniform frequency scale and of the fact that the number of observations in each cell is not the same.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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