Procedure Features: |
BAR statement options:
|
PLOT statement options:
|
|
Other Features: |
|
This
example uses the FREQ= option to calculate weighted
statistics for the line plot. During the manufacture of a metal-oxide semiconductor
(MOS) capacitor, various defects and their frequencies were recorded.
|
goptions reset=all border; |
|
data failure;
length Defect $15;
input Defect Count @@;
select (Defect) ;
when ("Contamination") Cost=3.5;
when ("Metallization") Cost=10;
when ("Oxide") Cost=10.5;
when ("Corrosion") Cost=4.5;
when ("Doping") Cost=3.6;
when ("Silicon") Cost=5.4;
otherwise Cost=1.0;
end;
datalines;
Contamination 15 Corrosion 2 Doping 1 Metallization 2
Miscellaneous 3 Oxide 8 Silicon 1 Contamination 16
Corrosion 3 Doping 1 Metallization 3 Miscellaneous 1
Oxide 9 Silicon 2 Contamination 20 Corrosion 1
Doping 1 Metallization 0 Miscellaneous 3 Oxide 7
Silicon 2 Contamination 12 Corrosion 1 Doping 1
Metallization 0 Miscellaneous 0 Oxide 10 Silicon 1
Contamination 23 Corrosion 1 Doping 1 Metallization 0
Miscellaneous 1 Oxide 8 Silicon 2
;
run; |
|
title1 "The Cost of Defects";
footnote1 j=r "GBLWTSTA"; |
|
AXIS1 label=("Defect Count");
AXIS2 label=("Total Cost"); |
|
proc gbarline data=failure;
bar Defect/ sumvar=Count axis=axis1;
plot / sumvar=Count freq=cost axis=axis2;
run;
quit; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.