Before & After Pareto Charts Using a BY Variable
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: PAREX1 */
/* TITLE: Before & After Pareto Charts Using a BY Variable */
/* PRODUCT: QC */
/* SYSTEM: ALL */
/* KEYS: Pareto Charts */
/* PROCS: PARETO */
/* DATA: */
/* */
/* SUPPORT: saswgr */
/* REF: PROC PARETO, Example 1 */
/* MISC: */
/* */
/****************************************************************/
data Failure3;
length Cause $ 16 Stage $ 16;
label Cause = 'Cause of Failure';
input Stage & $ Cause & $ 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
;
proc sort data=Failure3;
by Stage;
run;
title 'Pareto Effect of Furnace Tube';
proc pareto data=Failure3;
vbar Cause / freq = Counts
odstitle = title;
by Stage;
run;
title 'Comparison of Integrated Circuit Failures';
proc pareto data=Failure3;
vbar Cause / class = Stage
freq = Counts
scale = percent
intertile = 5.0
classkey = 'Before Cleaning'
odstitle = title;
run;
title 'Comparison of Integrated Circuit Failures';
proc pareto data=Failure3;
vbar Cause / class = Stage
freq = Counts
scale = count
nlegend = 'Total Circuits'
classkey = 'Before Cleaning'
odstitle = title
cframenleg
cprop;
run;