|
|
||||
|
Home |
SAS Helpful HintsBiostat Macro LibraryMass Production of Survival Plots%Survival and %SurvivalX reside in the departments SAS Macro Library and are enabled with the following SAS statements: L %Survival and %SurvivalX run Proc Lifetest, abbreviate the output, and create survival plots for a list of endpoints and survival times. The dataset must contain only one observation per subject. The Y axis may be specified, but it is suggested to be 0 to 100 by 10. Available plot styles are BlackWhite, Color(white background) or PowerPoint(blue frame, gold trim, black background). Graphs may be replayed 2, 4, 9 or 16 to a page. %SurvivalX allows the X axis to be specified. 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:
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. |
||||