Clinical Graphs Using SAS
Clinical Graphs Using SAS
Plot Combinations:
• Basic and Fit plots can be combined with each other and “Other” plots.
• Distribution plots can be combined with plots in same group and “Other”
plots.
• Categorical plots can be combined with plots in same group and “Other”
plots.
Note: All these graphs will be built using plot statements only.
Annotation is not used. This makes the graphs scalable to other data.
• This graph displays the median and CL of lipid data by visit and
treatment.
• Note the visits are treated as categorical data, and equally spaced
on the x-axis.
• The median values and CL by treatment for each visit are clustered
around each x-axis tick value, so they can be seen clearly.
• The trend line joining the median values by treatment is also
clustered so each trend line meets the appropriate value of the
median.
• When the visits are not at equal time intervals, it may be desirable to
see the visits scaled by time.
• This graph uses a numeric “week” value for visit, and a numeric x-
axis to view the data scaled by the visit interval.
Phillips, Stacey. 2014. “Swimmer Plot: Tell a Graphical Story of Your Time to Response Data Using PROC SGPLOT.”
PharmaSUG, San Diego. Available at http://www.pharmasug.org/proceedings/2014/DG/PharmaSUG-2014-DG07.pdf
First we represent the duration for each subject by stage in the study
using the HighLow plot.
• A Highcap is displayed to indicate continuing response.
Then we layer the complete or partial response duration and other details.
The data for the graph is obtained from the LIFETEST procedure.
ods graphics on;
ods output Survivalplot=SurvivalPlotData;
proc lifetest data=sashelp.BMT
plots=survival(atrisk=0 to 2500 by 500);
time T * Status(0);
strata group / test=logrankadjust=sidak;
run;
Note: The LIFETEST procedure creates a Survival Plot automatically. The goal here is
to show how to create a customized version using data from the procedure.
• Phillips, Stacey. 2014. “Swimmer Plot: Tell a Graphical Story of Your Time to
Response Data Using PROC SGPLOT.” PharmaSUG, San Diego. Available at
http://www.pharmasug.org/proceedings/2014/DG/PharmaSUG-2014-DG07.pdf
• Pandya, Niraj. 2012. “Waterfall Charts in Oncology Trials – Ride the Wave.”
PharmaSUG. Available at
http://www.pharmasug.org/proceedings/2012/DG/PharmaSUG-2012-DG13.pdf
• Matange, Sanjay. 2016. Clinical Graphs Using SAS. SAS Global Forum, 2016.
Available at:
http://support.sas.com/rnd/datavisualization/papers/sgf2016/SAS4321-2016.pdf
• Matange, Sanjay. 2016. Clinical Graphs Using SAS. SAS Institute. Available at:
https://www.sas.com/store/prodBK_68179_en.html