The SAS Output Delivery System and reporting techniques

Altering Proc Lifetest template in Enterprise Guide

Reply
New User
Posts: 1

Altering Proc Lifetest template in Enterprise Guide

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.

 

Thank you.

SAS Super FREQ
Posts: 291

Re: Altering Proc Lifetest template in Enterprise Guide

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, ....

SAS Super FREQ
Posts: 291

Re: Altering Proc Lifetest template in Enterprise Guide

Posted in reply to WarrenKuhfeld

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

Super User
Posts: 19,780

Re: Altering Proc Lifetest template in Enterprise Guide

@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.

 

 

 

 

SAS Super FREQ
Posts: 291

Re: Altering Proc Lifetest template in Enterprise Guide

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.

Super User
Posts: 19,780

Re: Altering Proc Lifetest template in Enterprise Guide

Posted in reply to WarrenKuhfeld

@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. 

 

 

SAS Super FREQ
Posts: 291

Re: Altering Proc Lifetest template in Enterprise Guide

Please look at the chapter. I don't think you are getting what I am saying.  

Ask a Question
Discussion stats
  • 6 replies
  • 144 views
  • 1 like
  • 3 in conversation