Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
BOXCHART Statement

Example 32.3: Creating Notched Box-and-Whisker Plots


See SHWBOX4 in the SAS/QC Sample Library

The following statements use the flight delay data of Example 32.1 to illustrate how to create side-by-side box-and-whisker plots with notches:

   title 'Analysis of Airline Departure Delays';
   symbol v=plus c=bib;
   proc shewhart data=times limits=timelim ;
      boxchart delay * day /
         boxstyle = schematicid
         cboxfill = ywh
         stddeviations
         nohlabel
         nolegend
         nolimits
         notches
         llimits  = 20
         cboxes   = dagr
         cframe   = vligb
         idcolor  = salmon;
      id reason;
      label delay = 'Delay in Minutes';
   run;

The control limits are suppressed with the NOLIMITS option. The notches, requested with the NOTCHES option, measure the significance of the difference between two medians. The medians are significantly different at approximately the 95% level if the notches do not overlap. For details, see the entry for the NOTCHES option in Chapter 46, "Dictionary of Options."

Output 32.3.1: Notched Side-by-Side Box-and-Whisker Plots
boxex3.gif (6092 bytes)

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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