|
Chapter Contents |
Previous |
Next |
| Details of the PARETO Procedure |
| See PARETO12 in the SAS/QC Sample Library |
In many applications, you can quantify the priority or severity of a problem with a measure such as the cost of repair or the loss to the customer expressed in man-hours. This example shows how to analyze such data with a weighted Pareto chart that incorporates the cost.
Suppose that the cost associated with each of the problems in data set FAILURE7 (see Example 26.6) has been determined and that the costs have been converted to a relative scale. The following statements add the cost information to the data set:
data failure7;
length analysis $ 16 ;
label analysis = 'Basis for Analysis' ;
set failure7;
analysis = 'Cost' ;
if cause = 'Contamination' then cost = 3.0 ;
else if cause = 'Metallization' then cost = 8.5 ;
else if cause = 'Oxide Defect' then cost = 9.5 ;
else if cause = 'Corrosion' then cost = 2.5 ;
else if cause = 'Doping' then cost = 3.6 ;
else if cause = 'Silicon Defect' then cost = 3.4 ;
else cost = 1.0 ;
output;
analysis = 'Frequency' ;
cost = 1.0 ;
output;
run;
The classification variable ANALYSIS has two levels, Cost
and Frequency. For ANALYSIS=Cost, the value of COST
is the relative cost, and for ANALYSIS=Frequency, the value
of COST is one.
The following statements create a one-way comparative Pareto chart with ANALYSIS as the classification variable, in which the cells are weighted Pareto charts with COST as the weight variable:
title 'Pareto Analysis By Cost and Frequency' ;
proc pareto data=failure7;
vbar cause / class = ( analysis )
freq = counts
weight = cost
barlabel = value
cframe = ligr
cbars = vigb
cconnect = salmon
cframeside = ligr
cframetop = ligr
intertile = 1.0 ;
run;
The display is shown in Output 26.8.1.
Output 26.8.1: Taking Cost into Account
|
Within each cell, the height of a bar is the frequency of the category multiplied by the value of COST, expressed as a percent of the total across all categories. Thus, for the cell in which ANALYSIS is equal to Frequency, the bars simply indicate the frequencies expressed in percent units. This display shows that the most commonly occurring problem (Contamination) is not the most expensive problem (Oxide Defect). The output data set SUMMARY is listed in Output 26.8.2.
Output 26.8.2: The Output Data Set SUMMARY
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.