Resources

CDF Plot with Superimposed Normal Curve

/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: CAPCDF1                                             */
/*   TITLE: CDF Plot with Superimposed Normal Curve             */
/* PRODUCT: QC                                                  */
/*  SYSTEM: ALL                                                 */
/*    KEYS: Capability Analysis, CDF Plot,                      */
/*   PROCS: CAPABILITY                                          */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT: saswgr                                              */
/*     REF: PROC CAPABILITY, CDFPLOT Example 1                  */
/*    MISC:                                                     */
/*                                                              */
/****************************************************************/

data Cord;
   label Strength="Breaking Strength (psi)";
   input Strength @@;
   datalines;
6.94 6.97 7.11 6.95 7.12 6.70 7.13 7.34 6.90 6.83
7.06 6.89 7.28 6.93 7.05 7.00 7.04 7.21 7.08 7.01
7.05 7.11 7.03 6.98 7.04 7.08 6.87 6.81 7.11 6.74
6.95 7.05 6.98 6.94 7.06 7.12 7.19 7.12 7.01 6.84
6.91 6.89 7.23 6.98 6.93 6.83 6.99 7.00 6.97 7.01
;

title 'Cumulative Distribution Function of Breaking Strength';
proc capability data=Cord noprint;
   spec lsl=6.8;
   cdf Strength / odstitle=title;
run;

title 'Cumulative Distribution Function of Breaking Strength';
proc capability data=Cord noprint;
   spec lsl=6.8;
   cdf Strength / normal
                  odstitle=title;
   inset mean std pctlss / format = 5.2
                           header = "Summary Statistics";
run;

proc capability data=Cord noprint;
   spec lsl=6.8 usl=7.2;
   cdf Strength / vref         = 5 95
                  vreflabels   = '5%' '95%'
                  odstitle     = title;
   inset pctgtr pctlss / format = 5.2
                         pos    = e
                         header = "Summary Statistics";
run;