Skip to Content
Producing High-Quality Figures Using SAS/GRAPH and ODS Graphics Procedures
book

Producing High-Quality Figures Using SAS/GRAPH and ODS Graphics Procedures

by Charlie Chunhua Liu
February 2015
Beginner to intermediate
282 pages
7h 27m
English
Chapman and Hall/CRC
Content preview from Producing High-Quality Figures Using SAS/GRAPH and ODS Graphics Procedures
205Survival Plots
ods select all;
ods graphics/reset = all width = 8in height = 6in noborder
OUTPUTFMT = EMF imagename = “FigSG_11_3”;
title1 “Figure11.3. Survival Plots Produced in Proc SGPLOT”;
title2 “- with the at-risk table displayed at the bottom
ofthe grap in diffrenet axis”;
footnote “&pgmpth.”;
proc sgplot data = Survivalplot2 sganno = anno_label;
* Use the step plot with curvelabels for label purpose;
step x = time y = survival/group = stratum curvelabel
lineattrs = (thickness = 2) name = ‘survival’;
* Draw censored observations;
scatter x = time y = censored/markerattrs = (symbol = plus
size = 10) name = ‘censored’;
scatter x = time y = censored/markerattrs = (symbol = plus
size = 10) GROUP = stratum;
* Draw the At Risk values ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Carpenter's Guide to Innovative SAS Techniques

Carpenter's Guide to Innovative SAS Techniques

Art Carpenter
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781482207026