Chapter Contents |
Previous |
Next |
Details and Examples |
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 29.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 29.8.1. Output 29.8.1: Taking Cost into Account
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.