06-02-2017 03:52 PM
Hi. My company is Using Enterprise Guide version 7.13. I do not appear to have ODS Graphics Designer installed on the network.
I am trying to alter a Kaplan-Meier graph produced by Proc Lifetest (putting a horizontal line in for the median and adding a summary table). I've seen lots of sites that tell you how to alter the template to do those things if you are using SAS 9.3, but I cannot figure out how to call up the default template to alter it in Enterprise Guide. I cannot find anything on this on-line, though SAS touts the ability to alter graphs in Enterprise Guide. Do I need to have ODS Graphics Designer installed to do this or is there another way? SAS is on a secured server that doesn't allow internet access or any Microsoft Office products to be installed, so trying to copy it over and uploading it is not a great option.
06-02-2017 04:42 PM
There is an entire documentation chapter on modifying the KM template. https://support.sas.com/documentation/onlinedoc/stat/131/kaplan.pdf While I have no experience in EG, this simply involves running SAS, and should be no different in EG, or DM, ....
06-02-2017 04:48 PM
Or change the release number to get a differnt version. Here is 14.1 (141) https://support.sas.com/documentation/onlinedoc/stat/141/kaplan.pdf
06-02-2017 06:06 PM
@WarrenKuhfeld is correct, there are many chapters and papers dedicated to this topic. You can search lexjansen.com for papers on the topic or even on here.
There are two consistent approaches: 1) Modify the template, 2) Extract the data and use SGPLOT to create your own graph.
If you can be more specific about your example you can probably get more help here.
Ideally you can provide data, but if you need fake data you can work with the SASHELP.HEART dataset.
06-02-2017 07:41 PM
Thank you for the kind words, but I must disagree. The KM documentation chapter is primarily not about ordinary template modification. That is the only plot where we provide macros and a long series of examples that show how to make changes. The papers that you will find elsewhere (at least any that I wrote) are obsolete compared to the SAS/STAT documentation. If anyone finds that the instructions in the KM template modification chapter are inadequate, I would really like to hear the specifics. It should never be necessary to use SGPLOT or resort to the customary forms of template modification to modify that graph. We have gone to great lengths to make that true.
06-02-2017 08:21 PM
@WarrenKuhfeld We'll probably have to agree to disagree. I agree that modifying the templates is well documented, but it's different. More users are familiar with SGPLOT than GTL and PROC TEMPLATE so there will still be some for who it's easier and faster to switch to SGPLOT than to try and figure out PROC TEMPLATE.