Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
INSET Statement

Example 5.1: Inset for Goodness-of-Fit Statistics

See CAPINS3 in the SAS/QC Sample Library

This example fits a normal curve to the torsion strength data used in the "Getting Started" section. The following statements fit a normal curve and request an inset summarizing the fitted curve with the mean, the standard deviation, and the Anderson-Darling goodness-of-fit test:

   title 'Torsion Strength of Copper Wire';
   legend2 frame cframe=ligr cborder=black position=center;
   proc capability data=wire noprint;
      spec lsl=22 llsl=2  clsl=black
           usl=38 lusl=20 cusl=black;
      histogram strength / normal(color=salmon l=2 w=2)
                           nocurvelegend
                           cframe = ligr
                           legend = legend2
                           cfill  = bigb;
      inset normal(mu sigma ad adpval) / cfill  = ywh
                                         format = 7.2;
   run;
The resulting histogram is displayed in Output 5.1.1. The NOCURVELEGEND option in the HISTOGRAM statement suppresses the default legend for curve parameters.

Output 5.1.1: Inset Table with Normal Curve Information
capiex1.gif (7988 bytes)

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.