|
|
||||
|
Home |
SAS Helpful HintsBiostat Macro LibraryMass Production of Observed & Delta BoxPlots%Boxplot resides in the departments SAS Macro Library and is enabled with the following SAS statements: Libname biostat '\\BIO2\example\SASMacrosWindows'; %Boxplot create boxplots of observed values and their changes from baseline for a list of given variables. This procedure uses all data points in the dataset, and combine all visits as one boxplot. This is an easy way to determine if the data is uniformly distributed and identifies if there are any outliers. Variables with similar ranges are plotted on the same graph. You may specify the maximum number of scales on a graph, and a tolerance (0-100%) to group variables by their range. Available plot styles are BlackWhite, Color (white background) or PowerPoint (blue frame, gold trim, black background). Graphs are displayed individually and in pairs, 2, 4 or 16 to a page. A grouping variable may be supplied to separate or jitter the boxes. Suggestion: Use short labels on the variables to be plotted so the labels on the X axis are printed horizonaly instead of vertically. Syntax: Example: The default colors may be changed by defining a macro variable named “Colors”: %Let Colors=Background_color Foreground_color Box1_color Box2_color…; The default font of centx may be changed on all text by defining a macro variable named “Font”: %Let Font=Simplex; The position of the legend may be changed by defining a macro variable named "LegendOption": %Let LegendOption=Position=(Inside Top Left) Across=2 Down=2; This procedure creates a graphics catalog named “work.mplot”. The graphics catalog may be cleared by closing the graph window and running the following code. Proc Datasets Library=work Memtype=Catalog; If you are running SAS interactively, this procedure will always replay the first set of graphs in the catalog. You may wish to reset the catalog between each procedure call. Output:
Please send your comments and suggestions about this web page to A. Watts (watts@bst.rochester.edu) |
|||
©Copyright University of Rochester Medical Center, 1999-2006. Disclaimer. For questions or suggestions concerning the content of these pages, contact the URMC Webmaster. |
||||