Pareto Chart with Restricted Number of Categories
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: PARGS3 */
/* TITLE: Pareto Chart with Restricted Number of Categories */
/* PRODUCT: QC */
/* SYSTEM: ALL */
/* KEYS: Pareto Charts */
/* PROCS: PARETO */
/* DATA: */
/* */
/* SUPPORT: saswgr */
/* REF: PROC PARETO, Getting Started Example 3 */
/* MISC: */
/* */
/****************************************************************/
data Failure2;
length Cause $ 16 ;
label Cause = 'Cause of Failure' ;
input Cause $ 1-16 Count;
datalines;
Contamination 14
Corrosion 2
Doping 1
Metallization 2
Miscellaneous 3
Oxide Defect 8
Silicon Defect 1
;
proc pareto data=Failure2;
vbar Cause / freq = Count
scale = count
maxncat = 5;
run;
title 'Integrated Circuit Manufacturing Problems';
proc pareto data=Failure2;
vbar Cause / freq = Count
scale = count
maxncat = 5
other = 'Others'
last = 'Others'
odstitle = title1;
run;