create new tag
, view all tags, tagging instructions
-- ArthurWatts - 25 Aug 2010

MacroHeaderForm edit

Macro Name


Description This set of Macros creates side-by-side boxplots by grouping variables with similar ranges onto the same graph. This is a quick way to check the distribution of several variables. This procedure can also be used after calling the Deltas macro, to check the distribution of changes from baseline.
Macro Parameters Dataset: Dataset to use
Group: Optional grouping variable
Varlist: List of variables to Boxplot
Maxperplot: Maximum number of variables on a graph
Tolerance: Tolerance Pecentage(T)(0-100) (70 is a good start.)
If the range of B is within T% of A, then put on the same graph
Catalog: Graphics catalog to use
Programmer Arthur Watts
Revision Version 1: Boxplot.sas
Disclaimer This SAS macro is developed by Mr. Watts in the Department of Biostatistics and Computational Biology at the University of Rochester under the auspice of the CTSI BREAD with the intent to facilitate data analyses and reporting in clinical and related research. It is copyrighted by Mr. Watts, August 2010 and distributed for free public access.
Example(s) Macro call with fully specified parameters:
%Boxplot(mydata,treatment,Cholesterol SystolicBP DiastolicBP,5,70,mplot);
Special Features There are several optional global macro variables that may be used:
Parameters: Description
Colors: Modifies the colors used to make the graph:
%Let colors=background foreground group1color group2color group3color...
Font: Font for all text. (i.e. %Let font=simplex;)
Height: Height for all text. (i.e. %Let height=2;)
Symbols: Symbols for points outside 1.5*IQR.
%Let symbols=circle diamond triangle;
Legendoptions: Options to modify the legend if a group is supplied.
Ylabel: Label for the Y axis.
Called Macros
%CheckData, %CheckNumVars, %CheckNumber
Notes Filename incl URL "http://CTSpedia.org/wiki/pub/CTSpedia/Boxplots/Boxplot.sas";
%Include incl;

See Also

Topic attachments
I Attachment Action Size Date Who Comment
elsesas BoxPlot.sas manage 11.0 K 25 Aug 2010 - 09:48 ArthurWatts Macros to boxplot several variables
Topic revision: r2 - 07 Sep 2011 - 16:35:57 - MaryBanach

Copyright & by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CTSPedia? Send feedback