Saving CAPABILITY Output in a Data Set
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: CAPOUT1 */
/* TITLE: Saving CAPABILITY Output in a Data Set */
/* PRODUCT: QC */
/* SYSTEM: ALL */
/* KEYS: Capability Analysis, */
/* PROCS: CAPABILITY */
/* DATA: */
/* */
/* SUPPORT: saswgr */
/* REF: SAS/QC Software: Usage and Reference, Version 6, */
/* First Edition, Volume 1 and Volume 2 */
/* MISC: */
/* */
/* Examples in the documentation were created using the */
/* statement: ods listing style=statistical; */
/* */
/****************************************************************/
data Belts;
label Strength = 'Breaking Strength (lb/in)'
Width = 'Width in Inches';
input Strength Width @@;
datalines;
1243.51 3.036 1221.95 2.995 1131.67 2.983 1129.70 3.019
1198.08 3.106 1273.31 2.947 1250.24 3.018 1225.47 2.980
1126.78 2.965 1174.62 3.033 1250.79 2.941 1216.75 3.037
1285.30 2.893 1214.14 3.035 1270.24 2.957 1249.55 2.958
1166.02 3.067 1278.85 3.037 1280.74 2.984 1201.96 3.002
1101.73 2.961 1165.79 3.075 1186.19 3.058 1124.46 2.929
1213.62 2.984 1213.93 3.029 1289.59 2.956 1208.27 3.029
1247.48 3.027 1284.34 3.073 1209.09 3.004 1146.78 3.061
1224.03 2.915 1200.43 2.974 1183.42 3.033 1195.66 2.995
1258.31 2.958 1136.05 3.022 1177.44 3.090 1246.13 3.022
1183.67 3.045 1206.50 3.024 1195.69 3.005 1223.49 2.971
1147.47 2.944 1171.76 3.005 1207.28 3.065 1131.33 2.984
1215.92 3.003 1202.17 3.058
;
proc capability data=Belts;
var Strength Width;
output out=Means mean=smean wmean;
output out=Strstats mean=smean std=sstd min=smin max=smax;
run;
proc print data=Means;
run;
proc print data=Strstats;
run;
proc capability data=Belts noprint;
var Strength Width;
output out=Pctlstr p5=p5str p95=p95str;
run;
proc print data=Pctlstr;
run;
proc capability data=Belts noprint;
var Strength Width;
output out=Pctls pctlpts = 20 40
pctlpre = S W
pctlname = pct20 pct40;
run;
proc print data=Pctls;
run;