|
|
||||
|
Home |
SAS Helpful HintsBiostat Macro LibraryMass Production of Standard Error Plots%StdErrPlot and %StdErrPlotY reside in the departments SAS Macro Library and are enabled with the following SAS statements: L %StdErrPlot and %StdErrPlotY calculate and plot the standard error bars of the changes from baseline, by treatment, for each variable listed. Visits that have <20% of enrolled subjects are automatically dropped. Available plot styles are BlackWhite, Color (white background) or PowerPoint (blue frame, gold trim, black background). Graphs are displayed individually and 2, 4, 9 or 16 to a page. “Jitter” allows you to space out the error bars so they are not printed directly on top of each other. Syntax: Example: The default colors may be changed by defining a macro variable named “Colors”: %Let Colors=Background_color Foreground_color Group1_color Group2_color
Group3_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: %StdErrPlotY allows you to fix the Y axis to compare similar scales. *Usage Trick: If you have a few sets of graphs with
fixed Y axis, they may be replayed together by padding
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. |
||||