Transcription of The BOXPLOT Procedure - SAS
1 SAS/STAT User s GuideThe BOXPLOT ProcedureThis document is an individual chapter fromSAS/STAT User s correct bibliographic citation for the complete manual is as follows: SAS Institute Inc. User s , NC: SAS Institute 2013, SAS Institute Inc., Cary, NC, USAAll rights reserved. Produced in the United States of a hard-copy book: No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or byany means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS a web download or e-book.
2 Your use of this publication shall be governed by the terms established by the vendor at the timeyou acquire this scanning, uploading, and distribution of this book via the Internet or any other means without the permission of the publisher isillegal and punishable by law. Please purchase only authorized electronic editions and do not participate in or encourage electronicpiracy of copyrighted materials. Your support of others rights is Government License Rights; Restricted Rights:The Software and its documentation is commercial computer softwaredeveloped at private expense and is provided with RESTRICTED RIGHTS to the United States Government.
3 Use, duplication ordisclosure of the Software by the United States Government is subject to the license terms of this Agreement pursuant to, asapplicable, FAR , DFAR (a), DFAR (a) and DFAR and, to the extent required under law, the minimum restricted rights as set out in FAR (DEC 2007). If FAR is applicable, this provisionserves as notice under clause (c) thereof and no other notice is required to be affixed to the Software or documentation. TheGovernment s rights in Software and documentation shall be only those set forth in this Institute Inc.
4 , SAS Campus Drive, Cary, North Carolina 2013 SAS provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. Formore information about our offerings, call and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in theUSA and other countries. indicates USA brand and product names are trademarks of their respective and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc.
5 In the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies. 2013 SAS Institute Inc. All rights reserved. all that you need on your journey to knowledge and additional books and Greater Insight into Your SAS Software with SAS 28 The BOXPLOT ProcedureContentsOverview: BOXPLOT Procedure ..1076 Traditional graphics and ODS graphics ..1076 Getting Started: BOXPLOT Procedure ..1077 Creating Box Plots from Raw Data ..1077 Creating Box Plots from Summary Data.
6 1080 Saving Summary Data with Outliers ..1082 Syntax: BOXPLOT Procedure ..1085 PROC BOXPLOT Statement ..1085BY Statement ..1086ID Statement ..1086 INSET Statement ..1087 INSETGROUP Statement ..1090 PLOT Statement ..1093 Details: BOXPLOT Procedure ..1116 Summary Statistics Represented by Box Plots ..1116 Output Data Sets ..1117 Input Data Sets ..1119 Styles of Box Plots ..1122 Percentile Definitions ..1123 Missing Values ..1124 Continuous Group Variables ..1124 Positioning Insets ..1126 Displaying Blocks of Data.
7 1131 Clipping Extreme Values ..1133 ODS graphics ..1137 Examples: BOXPLOT Procedure ..1137 Example : Displaying Summary Statistics in a Box Plot ..1137 Example : Using Box Plots to Compare Groups ..1139 Example : Creating Various Styles of Box-and-Whiskers Plots ..1141 Example : Creating Notched Box-and-Whiskers Plots ..1146 Example : Creating Box-and-Whiskers Plots with Varying Widths ..1147 Example : Creating Box-and-Whiskers Plots Using ODS graphics ..1148 References ..11501076 FChapter 28: The BOXPLOT ProcedureOverview: BOXPLOT ProcedureThe BOXPLOT Procedure creates side-by-side box-and-whiskers plots of measurements organized in box-and-whiskers plot displays the mean, quartiles, and minimum and maximum observations for a this chapter, this type of plot, which can contain one or more box-and-whiskers plots, is referredto as abox PLOT statement of the BOXPLOT Procedure produces a box plot.
8 You can specify more than one PLOT statement to produce multiple box plots. You can use options in the PLOT statement to do the following: control the style of the box-and-whiskers plots specify one of several methods for calculating quantile statistics (percentiles) add block legends and symbol markers to reveal stratification in data display vertical and horizontal reference lines control axis values and labels overlay the box plot with plots of additional variables control the layout and appearance of the plotThe INSET and INSETGROUP statements produce boxes or tables (referred to asinsets) of summarystatistics or other data on a box plot.
9 An INSET statement produces an inset of statistics pertaining to theentire box plot. An INSETGROUP statement produces an inset containing statistics calculated separately foreach group. An INSET or INSETGROUP statement by itself does not produce a display; it must be usedwith a PLOT can use options in an INSET or INSETGROUP statement to control insets in these ways: specify the position of the inset specify a header for the inset specify graphical enhancements, such as background colors, text colors, text height, text font, and dropshadowsTraditional graphics and ODS GraphicsThe BOXPLOT Procedure can produce two kinds of graphical output: traditional graphics ODS Statistical graphics outputGetting Started.
10 BOXPLOT ProcedureF1077 Traditional graphics are saved in graphics catalogs with entry type GRSEG. Their appearance is controlled byglobal statements such as the GOPTIONS, AXIS, and SYMBOL statements (as described inSAS/GRAPH:Reference) and numerous specialized PLOT statement options. You must have a SAS/GRAPH license toproduce traditional Statistical graphics (or ODS graphics for short) is an extension to the Output Delivery System (ODS).Graphs are produced in standard image file formats (such as PNG) instead of graphics catalogs, and thedetails of their appearance and layout are controlled by ODS styles and templates.