ODS AND STATISTICAL GRAPHICS

Size: px
Start display at page:

Download "ODS AND STATISTICAL GRAPHICS"

Transcription

1 ODS AND STATISTICAL GRAPHICS Shi-Tao Yeh, GlaxoSmithKline, King of Prussia, PA ABSTRACT SAS Output Delivery System (ODS) provides several features that greatly enhance the statistical graphics presentation. The ODS features discussed in this paper are: 1) creation of SAS data sets from ODS output tables and passing the statistical information to the graph, 2) using ODS to read and write graphics files, 3) using ODS to hyperlink other files, and 4) using the ODS GRAPHICS ON statement to produce statistical graphs. Some sample code and illustrations are provided in this paper. The SAS products used in this paper are SAS BASE, SAS/STAT, and SAS/GRAPH on a UNIX platform andapcwindows environment. INTRODUCTION An effective statistical graph presents accurate, unambiguous, and informative data. Helpful illustrations offer clearly defined statistical results and elegantly represented information. Displaying the output from SAS/STAT procedures onto a statistical graph is just one of the desirable features. Clinical Data Interchange Standards Consortium (CDISC) "is an open, multidisciplinary, non-profit organization committed to the development of industry standards to support the electronic acquisition, exchange, submission and archiving of clinical trials data and metadata for medical and biopharmaceutical product development. The mission of CDISC is to lead the development of global, vendor-neutral, platform independent standards to improve data quality and accelerate product development in our industry." [1] The Analysis Data Modeling (AdaM) team from CDISC has developed a guideline with several examples of analysis datasets used to generate the statistical results for a regulatory submission. Figure 1 shows a proposed mock-up from the AdaM team that contains statistics information on the figure. These statistics can be retrieved from the ODS output table easily. Figure 1. Proposed Figure Mock-up from AdaM Team

2 Prior to Version 7, SAS output provided no means for you to parse its contents. Retrieving the output from a statistical procedure would have been a challenging task. Beginning with Version 7, all SAS/STAT procedures use the Output Delivery System (ODS) to manage their output. This includes managing the form the output appears, as well as its organization and format. The default for SAS/STAT procedures is to produce the usual SAS listing file. However, by using the features of the ODS, you can make changes to the format and appearance of your SAS output. In particular, you can: display your output in different destinations, such as hypertext markup language (HTML), Rich-Text- Format(RTF)orPDFformat create SAS data sets directly from output tables hyperlink to files or locations select or exclude individual output tables customize the layout, format, and headers of your output produce ODS statistical graphics as part of ODS output in SAS 9.1. You can use the feature of 'select or exclude individual output tables' to retrieve the outputs table data and create the SAS data sets. The LIFETEST procedure in SAS/STAT is selected for the depiction of the ODS table names and contents. The ODS tables created from PROC LIFETEST are as follows: ODS Table Name Description Statement Option CensoredSummary Number of events and censored observations PROC METHOD=PL (default) HomStats Rank statistics for testing strata homogeneity STRATA HomTests Tests for strata homogeneity STRATA LifetableEstimates Lifetable survival estimates PROC METHOD=LT LogForStepSeq Forward stepwise sequence for the log-rank TEST statistics for association LogHomCov Covariance matrix for the log-rank statistics for strata homogeneity STRATA LogTestCov Covariance matrix for log-rank statistics for TEST association LogUniChisq Univariate chi-squares for log-rank statistics for TEST association Means Mean and Standard Error of survival times PROC METHOD=PL (default) ProductLimitEstimates Product-limit survival estimates PROC METHOD=PL (default) Quartiles Quartiles of the survival distribution PROC METHOD=PL (default) WilForStepSeq Forward stepwise sequence for the log-rank TEST statistics for association WilHomCov Covariance matrix for the Wilcoxon statistics STRATA for strata homogeneity WilTestCov Covariance matrix for the log-rank statistics for TEST association WilUniChiSq Univariate chi-squares for the Wilcoxon statistic for association TEST Table 1. ODS Tables Produced in PROC LIFETEST The ODS Statistical Graphics (or ODS Graphics for short) is a new experimental feature in SAS 9.1. It provides commonly used statistical graphics, such as scatter plots, histograms, box plots, contour plots and 3-D plots from several SAS products procedures automatically. 2

3 ODS Graphics can not produce just graphs without other ODS output tables and listings. In other words, ODS Graphics are part of ODS output and use at least one ODS destination to obtain graphics. ODS Graphics uses Java technology and is independent of SAS/GRAPH. ODS Graphics do not support the following statements: 1) any SAS/GRAPH statements, such as GOPTIONS, SYMBOL, PATTERN; 2) the GTITLE or GFOOTNOTE options available with the ODS destinations HTML, RTF, and MACKUP, and 3) the ODS USEGOPT statement. DATA FILE The data, which is used throughout this paper, is from a hypothetical clinical trial survival analysis. This data file contains eighty-seven subjects and four variables: Subject ID, Efsurvw, Survival, and Trtgrpt. It also contains two treatments: Dose A and Dose B with 67 and 20 subjects respectively. ODS OUTPUT TABLE DATA The ODS allows you to convert the output of a procedure into a SAS data set. The following sample code creates the Output Tables as SAS data sets. The ODS LISTING CLOSE statement is used to stop the creation of Listing output. The ODS OUTPUT statement is used to create the SAS data sets. The following Sample Code I creates three ODS Output Tables; 1) Quartiles, 2) ProductLimitEstimates, and 3) CensoredSummary, ods listing close; ods output Quartiles=quar ProductLimitEstimates =s_est CensoredSummary=censor; proc lifetest data=final; time survival * efsurvw(0); strata trtgrpt; ods output close; ods listing; Sample Code I: ODS statements to Create ODS Output Tables The sample output of CensoredSummary and Quartiles are listed in Tables 2 and 3, respectively. Table 2. ODS Output Table - Overall Survival Censored Summary Statistics Table 3. ODS Output Table - Quartiles Statistics 3

4 There are four methods to display ODS Output data; 1) using SAS macro variables to store the ODS Output data and passing it to the graphics, 2) using SAS/GRAPH PROC GPRINT to create the ODS Output Tables as a graphic file, then call PROC GREPLAY to display it as multiple graphics on one page, 3) using SAS/GRAPH PROC GPRINT to create the ODS Output Tables as a graphic file in jpeg format, then call ODS to display it as multiple graphics on one page, 4) using PROC PRINT to print ODS Output Tables on a graphic page, and 5) using PROC REPORT to print ODS Output Tables on a graphic page. The following sample layouts illustrate different method performed. SAMPLE LAYOUT 1: USING ODS AND MACRO VARIABLES FOR PASSING ODS OUTPUT TABLE TO FOOTNOTE STATEMENTS The following code converts survival censored statistics into macro variables. call symput('groupf' compress(_n_), trtgrpt); call symput('ng' compress(_n_), compress(put(total, 8.))); call symput('ngevt' compress(_n_), compress(put(failed, 8.))); call symput('ngecn' compress(_n_), compress(put(censored, 8.))); call symput('pgcen' compress(_n_), compress(put(pctcens, 8.1))); The values in the macro variables are passed to SAS/GRAPH footnote statements. footnote1 h=0.7 f=swissbu ' ODS Censored Summary '; footnote2 h=0.7 f=swissbu ' Group total failed censored pctcens'; footnote3 h=0.7 f=swissbu " &groupf1 &ng1 &ngevt1 &ngecn1 &pgcen1" ; footnote4 h=0.7 f=swissbu " &groupf2 &ng2 &ngevt2 &ngecn2 &pgcen2" ; footnote5 h=0.7 f=swissbu " &groupf3 &ng3 &ngevt3 &ngecn3 &pgcen3" ; Figure 2 illustrates the output of survival censored summary statistics appearing as footnotes. Figure 2. Survival Censored Summary Statistics Appearing as Footnotes SAMPLE LAYOUT 2: USING MACRO VARIABLES FOR PASSING ODS OUTPUT TO NOTE STATEMENTS 4

5 The ODS allows the users to parse the contents from the procedure output. The following survival analysis graph is an example of using ODS and macro variables for passing ODS output to footnote statements. PROC LIFETEST is used to generate survival overall summary statistics. data _null_; set quar end=last; trt=substr(trt,1,6); call symput('trt' compress(_n_), trt); call symput('percent' compress(_n_), compress(put(percent, 8.))); call symput('estima' compress(_n_), compress(put(estimate, 8.))); call symput('lower' compress(_n_), compress(put(lowerlimit, 8.1))); call symput('upper' compress(_n_), compress(put(upperlimit, 8.1))); %macro move1(i,j); move = (47, &i) "&&&trt&j" move = (59, &i) "&&&percent&j" move = (68, &i) "&&&estima&j" move = (77, &i) "&&&lower&j" move = (87, &i) "&&&upper&j" %mend; proc gplot data=s_est; note f=swiss height = 1.8 j=left move = (46, 86) "TRTGRPT" move = (56, 86) "PERCENT" move = (65, 86) "ESTIMATE" move = (74, 86) "LOWERLIMIT" move = (84, 86) "UPPERLIMIT" %move1(i=83, j=1) %move1(i=81, j=2) %move1(i=79, j=3) %move1(i=77, j=4) %move1(i=75, j=5) %move1(i=73, j=6); Figure 3. Example of Passing ODS Quartiles Summary Statistics to GPLOT Note Statements SAMPLE LAYOUT 3: USING GPRINT TO PRINT ODS OUTPUT TABLES 5

6 The GPRINT procedure converts a text file into a graphics output that can be displayed or printed on a graphics output device. Like output from any other SAS/GRAPH procedure, output from the GPRINT procedure can be stored in catalogs and replayed with the GREPLAY procedure. This example utilizes the above GPRINT features to display ODS output tables as part of statistical graphics. /* insert SAS data step statements to get the data */ /* insert Sample Code I here to create ODS Output Tables */ filename odstemp 'a004.lst'; proc printto new file=odstemp; options ls=64 ps=20 skip=3 nodate ; title 'ODS Quartiles Output'; proc print data=quar(drop= stratum) noobs; options formdlim=' '; title 'ODS CensoredSummary Output'; proc print data=censor(drop= control_var stratum) noobs; proc printto; /* insert goptions and SAS/GRAPH statement */ goptions rotate=portrait device=pscolosb ctext=black ftext=swissbu htext=0.6 hpos=45 vpos=44 ; proc gprint fileref=odstemp name='g2'; proc greplay igout=gseg nofs tc=cat1x2; tdef ods1x2 1/ ulx=0 uly=100 urx=100 ury=100 llx=0 lly=50 lrx=100 lry=50 2/ ulx=0 uly=50 urx=100 ury=50 llx=0 lly=0 lrx=100 lry=0 ; template ods1x2; treplay 1:gplot 2:g2; Figure 5 demonstrates the output of survival graphics from the GPLOT, the ODS output tables from the GPRINT and both graphics outputs are displayed on the same page from the GREPLAY procedure. Figure 4. Using GPLOT, GPRINT, and GREPLAY to Display ODS Output Tables on Survival Graphics SAMPLE LAYOUT 4: USING ODS TO CREATE A CLICKABLE FILE 6

7 You can combine SAS/GRAPH with ODS to produce high-resolution graphics in production reports. You can use the ODS to convert the file format into either a Portable Document Format (PDF) or Rich Text Format (RTF) graphic output. Both file formats are clickable files, but the RTF file is for use in Microsoft Word. The selection of an appropriate graphic device driver is also an important consideration. Graphic device drivers are the components of SAS/GRAPH software that translate the device-independent graphics output from SAS/GRAPH procedures into the appropriate commands to produce graphics output on particular output devices. Each device driver contains settings that determine the default appearance of the output, such as dimensions and orientation, cell size, colors, and hardware fonts. Table 4 lists suggested graphics device drivers for different ODS destinations. Destination Device PDF PDF, PDFC RTF JPEG, PNG, CGMOF97L, CGMOF97P Table 4. Suggested Graphics Device Drivers for Different ODS Destination The syntax to convert a graphic to either of the PDF destination is: ODS PDF file="path to your file with correct pdf file extension"; SAS/GRAPH statements; ODS PDF close; You need to use the STARTPAGE option to control where and when to place the page breaks. The option of startpage = never is used in the sample code to prevent all page breaks. Figure 6 illustrates the output from GPLOT, GPRINT and GREPLAY with the ODS destination of PDF. Figure 5. Using ODS PDF Destination to Create a PDF File SAMPLE LAYOUT 5: USING ODS, PROC GPLOT, AND PROC PRINT TO CREATE A RTF FILE A RTF file is a text file using defined control words and symbols that preserve the formatting of text. You can use the SAS system version 8 with the RTF specification to create Microsoft Word documents. The advantages of producing RTF files from the SAS system directly are: 1) the SAS programmer no longer needs to write additional code to post process output, 2) the output of graphics are in the proper formats for easy viewing and can be sent directly to a Word document, 3) a better output quality and presentation, and 4) the end user has a clickable file to view both text and graphical reports produced from within SAS software. The ODS statements to create RTF file are: 7

8 ODS RTF file="path to your file with correct rtf file extension"; SAS/GRAPH statements; ODS RTF close; An escape sequence is a series of characters starting with the specified escape character. Escape sequences are used to send a command to a device or program. ODS allows you to define an escape character by ESCAPECHAR= option. Furthermore, escape sequences are used for any sequence of characters that temporarily suspends normal processing of a stream of characters to perform some special function. A data set named image, which contains the ODS ESCAPECHAR= facility to define the escape character, is created in the following sample code. In this dataset, the PREIMAGE style option ^S= {preimage= } is used to point to an external graphic file. data image; list='^s={preimage="a007.jpg"}'; The SAS procedures that allow users to insert style statements are PROC REPORT and PROC TABULATE. PROC REPORT is given in the following sample code to call upon the style statement to control the width of cells. The graphic will appear in a cell of its own in the resulting output. After the graphic display, you can call PROC PRINT statements to display the ODS output tables. /* insert Sample Code I here to create ODS Output Tables */ goptions device=jpeg gsfname=gsasfile ftext=swissb vsize=5in hsize=7in; filename gsasfile "a007.jpg"; /* insert SAS/GRAPH statements and data image statements*/ ods escapechar='^'; ods rtf file="a007.rtf" startpage=never; options ls=132 ps=60 skip=0 nodate ; proc report data=image noheader nofs list spacing=0 style={frame=void rules=none protectspecialchars=off}; define list /style={cellwidth=8in cellheight=5in} center; title 'ODS Quartiles Output'; proc print data=quar(drop= stratum) noobs; title 'ODS CensoredSummary Output'; proc print data=censor(drop= control_var stratum) noobs; quit; ods _all_ close; Figure 6. Using ODS, PROC GPLOT and PROC PRINT to Create a RTF File 8

9 SAMPLE LAYOUT 6: USING ODS AND PROC PEPORT TO CONTROL DISPLAY LAYOUT The display layout controls multiple graphs on one page. Figure 8 depict different types of display layout. Figure 7. Different Types of Display Layout There are several methods to control the display layout. The SAS/GRAPH GREPLAY procedure that is used in the previous section is one of them. You can use PROC REPORT with style statements to insert multiple graphs on one page. TWO-ROW DISPLAY LAYOUT The following sample code calls PROC REPORT procedure twice to create a 2-row display layout. filename odstemp 'b009.lst'; proc printto new file=odstemp; un; options ls=70 ps=30 skip=3 nodate; title 'ODS CensoredSummary Output'; proc print data=censor(drop= control_var stratum) noobs ; title; proc printto; /* insert Sample Code I here to create ODS Output Tables */ goptions device=jpeg gsfname=gsasfile gsfmode=replace ftext=swissb vsize=4.2in hsize=8in; /* insert SAS/GRAPH statements */ goptions rotate=portrait ctext=black ftext=swissbu htext=3.2 vsize=2in hsize=8in;; filename gsasfile "b0092.jpg"; proc gprint fileref=odstemp ; options orientation=landscape; data image; length img1 img2 $100.; img1='^s={preimage="b0091.jpg" }' ; img2='^s={preimage="b0092.jpg" }' ; ods escapechar='^'; ods rtf file="b009.rtf" startpage=never; options ls=100 ps=65 skip=0 nodate orientation=landscape; proc report data=image style={frame=void rules=none protectspecialchars=off}; column img1 ; define img1 /display width=100 noheader nofs list style={cellwidth=8.4in cellheight=4.4in preimage="b0091.jpg" } ; proc report data=image noheader nofs list 9

10 style={frame=void rules=none protectspecialchars=off}; column img2 ; define img2 /display width=100 style={cellwidth=8.4in cellheight=2.1in preimage="b0092.jpg"; quit; ods _all_ close; Figure 8. Using ODS and Calling PROC REPORT Twice to Create a 2-Row Display Layout TWO-COLUMN DISPLAY LAYOUT The following is sample code with the PROC REPORT procedure to create a 2-column display layout: /* insert SAS/GRAPH statements to create 2 graphs: b0061.jpg and b0062.jpg */ /* insert data image statements */ ods escapechar='^'; ods rtf file="b006.rtf" startpage=never; options ls=132 ps=65 skip=0 nodate orientation=landscape; proc report data=image noheader nofs list spacing=0 style={frame=void rules=none cellwidth=9in protectspecialchars=off}; column img1 img2; define img1 /style={cellwidth=4.75in cellheight=6.5in preimage="b0061.jpg"} ; define img2 /style={cellwidth=4.75in cellheight=6.5in preimage="b0062.jpg"} ; quit; ods _all_ close; HYPERLINK FILES Figure 9. Using ODS and PROC REPORT to Create a 2-Column Display Layout 10

11 The table of contents (TOC) is a list of the headings or topics in a document. You can use a TOC to get an overview of the topics presented in a document or to quickly navigate to a topic. This section discusses how to utilize the ODS features to create a TOC. The ODS features; such as Bookmarks, ODS ESCAPECHAR, are discussed in the section. An RTF file contains formatting instructions that can be interpreted by an RTF reader. Microsoft developed this interchange format to exchange documents between Word and other word processors or presentation programs. It is also a method of encoding formatted text and graphics for easy transfer between different output devices, operating systems, and applications. ThesyntaxofaHYPERLINKisshownasfollows: {HYPERLINK "FieldName" [switches]} The code below shows an example of a HYPERLINK statement. {\field {\*\fldinst HYPERLINK \\l "FieldName"}} PAGEREF is used for inserting the page number of a bookmark for a cross-reference. The syntax of a PAGEREF is shown as follows: {PAGEREF Bookmark [\*Format Switch]} A sample code is shown as follows: {\field {\*\fldinst PAGEREF Bookmark \\h}} A bookmark is a feature that, by recording an address or reference, enables you to quickly return to that page or file. It keeps your reference link, much like a bookmark in a book does. It is also a pointer points to a specific page or file. The syntax of bookmark and macro application are shown as follows: ods rtf bookmark="bookmark name"; %macro settoc(bkmkname=); toc='{\field {\*\fldinst HYPERLINK \\l "' "&bkmkname" '"}}'; ' "&bkmkname" '\\h}}'; output; pageno='{\field {\*\fldinst PAGEREF %mend settoc; /* Insert Dataset Preparation Statements */ /* Insert Sample Code I to produce ODS Output Table */ filename odstemp 'b009.lst'; proc printto new file=odstemp; options ls=70 ps=30 skip=3 nodate; title 'ODS Quartiles Output'; proc print data=quar(drop= stratum) noobs ; options formdlim=' '; title 'ODS Means Output'; proc print data=meanst noobs ; title 'ODS CensoredSummary Output'; proc print data=censor(drop= control_var stratum) noobs ; title; proc printto; data s_est; set s_est; trtgrpt=trt; if trt = 'Dose A' then trt='dose A (N=67)'; else trt = 'Dose B (N=20)'; format survival 8.1 efsurvw 8.; 11

12 /* insert SAS/GRAPH statements to produce Survival Graph ab051.jpg */ /* insert SAS/GRAPH statements to produce ODS Output image file ab093.jpg */ options orientation=landscape; %macro settoc(bkmkname=); toc='{\field {\*\fldinst HYPERLINK \\l "' "&bkmkname" '"}}'; pageno='{\field {\*\fldinst PAGEREF ' "&bkmkname" '\\h}}'; output; %mend settoc; data toc; length toc pageno $70; %settoc(bkmkname=quartiles); %settoc(bkmkname=means); %settoc(bkmkname=censorsummary); %settoc(bkmkname=survivalestimates); %settoc(bkmkname=graphic_1); %settoc(bkmkname=graphic_2); ods rtf file="ac010.rtf"; title 'Table of Contents'; proc report data=toc nowd style={protectspecialchars=off rules=groups frame=hsides}; column toc pageno; define toc / display 'Table' left style={cellwidth=3in just=left}; define pageno / display 'Page' left style={cellwidth=2.5in just=right}; options ls=100 ps=60 skip=5 nodate; ods rtf bookmark="quartiles"; title 'ODS Quartiles Output'; proc print data=quar(drop= stratum) noobs ; title 'ODS Means Output'; ods rtf bookmark="means"; proc print data=meanst noobs ; title 'ODS CensoredSummary Output'; ods rtf bookmark="censorsummary"; proc print data=censor(drop= control_var stratum) noobs ; ods rtf bookmark="survivalestimates"; title 'ODS Survival Estimates Output'; proc print data=s_est(drop=trt stratum) noobs ; title ' '; ods escapechar='^'; data image1; length img1 img2 $100.; img1='^s={preimage="ab051.jpg" }' ; img2='^s={preimage="ab093.jpg" }' ; title 'Summary of Overall Survival'; ods rtf bookmark="graphic_1"; proc print data=image1 noobs style={frame=void rules=none protectspecialchars=off}; var img1 / style={cellwidth=8.4in cellheight=6in preimage="ab051.jpg" } style(header)={background=white foreground=white font_size=1pt}; title 'ODS Output Tables'; ods rtf bookmark="graphic_2"; proc print data=image1 noobs 12

13 style={frame=void rules=none protectspecialchars=off}; var img2 / style={cellwidth=8.4in cellheight=6in preimage="ab093.jpg" } style(header)={background=white foreground=white font_size=1pt}; quit; ods _all_ close; Figure 10. Using ODS to Create a TOC and Hyperlinks You can use ODS RTF to generate a page with frames that contain thumbnail images of the graphs. When a thumbnail image is selected, a full scale version of the graph appears in the frame on the right side of the page. Each graph contains a hyperlink to the SAS code or graph or output. The SAS code can be copied and pasted into the SAS Display Manager, modified as needed, for reusing the code. ODS GRAPHICS ODS Graphics is a new (experimental) feature in SAS Version 9.1 from SAS products of SAS/STAT, Base SAS, SAS/ETS and SAS High-Performance Forecasting procedures which allows the users to create statistical graphics automatically. Procedures supporting ODS Graphics are as follows: SAS Product Procedures supporting ODS GRAPHICS Base SAS CORR SAS/STAT ANOVA, CORRESP, GAM, GENMOD, GLM, KDE, LIFETEST, LOESS, LOGISTIC, MI, MIXED, PHREG, PRINCOMP, PRINQUAL, REG, ROBUSTREG SAS/ETS ARIMA, AUTOREG, ENTROPY, EXPAND, MODEL, SYSLIN, TIMESERIES, UCM, VARMAX, X12 SAS High-Performance HPF Forecasting Table 5. SAS Products and Procedures Supporting ODS Graphics ODS GRAPHICS FROM PROC LIFETEST The following ODS GRAPHICS are provided from procedure LIFETEST. 13

14 Table 6. ODS Graph Names and Description from PROC LIFETEST ODS GRAPHICS SAMPLE OUTPUT FROM PROC LIFETEST The following sample code with the PROC LIFETEST procedure creates 3 default ODS Graphics (survival, EqualPrecision and Hazard) which are shown in Figure 11. ods html path="c:\tip2" gpath="c:\tip2" file="a001ab.htm"; ods graphics on /imagefmt=jpeg imagename = "a001ab"; proc lifetest data=final ; time efsurvw * efsvflag(0); survival plots=(s epb); strata trtgrpt; id subjid; proc lifetest data=final method=lt; time efsurvw * efsvflag(0); survival plots=(haz); strata trtgrpt; id subjid; 14

15 ODSGRAPHICSSTYLE Figure 11. Sample ODS Graphics from PROC LIFETEST Procedure ODS styles control the overall look of ODS output. ODS Graphics provides a style= option to produce different types of output appearance with the same content. There are four styles in SAS 9.1 for ODS Graphics output appearance: 1) default, 2) Journal, 3) analysis, and 4) statistical. Style=default Style=journal Style=statistical Figure 12. Sample ODS Graphics with Different Styles Style=analysis 15

16 CUSTOMIZING ODS GRAPHICS In SAS 9.1, the ODS Graphics are controlled by a new graph definition language called ODS Graphics Template Language (GTL). ODS Graphics are part of procedure ODS output and are governed by the standard ODS statements. In addition, graph appearance, like ODS output tables, are controlled by the current ODS style. The names of the templates a procedure uses are predefined, the users can not change a template s name or add new templates to a procedure s output. The default SAS supplied templates are located in SASHELP.TEMPLMST. You can change the default template and keep the same template name, but store the modified template to SASUSER path that is searched before the default path. The default template for Hazard Function graph in procedure LIFETEST is as follows: proc template; define statgraph Stat.Lifetest.Graphics.Hazard; dynamic NStrata; layout Gridded; if (NSTRATA=1) layout gridded / padbottom=5; EntryTitle "Hazard Function Estimate"; endlayout; layout OVERLAY; seriesplot y=hazard x=midpoint / linecolor= StatGraphFitLine:contrastcolor markercolor= StatGraphFitLine:contrastcolor index=stratumnum markers=on name ="Hazard"; EndLayout; else layout gridded / padbottom=5; EntryTitle "Hazard Function Estimates"; endlayout; layout OVERLAY; seriesplot y=hazard x=midpoint / group=stratum index=stratumnum markers=on name="hazard"; DiscreteLegend "Hazard" / halign=right valign=top across=1 border= true; EndLayout; endif; EndLayout; end; The Hazard Function graph is modified in the following items: 1) three title lines instead of only one with user s provided titles, 2) change the position of legend from right top corner to left bottom corner, 3) a footnote is added, 4) line colors are added, and 5) thicker lines are selected. Table 7 shows sources for controlling ODS Graphics appearance. Source for Control ODS Graphics Component Feed-in data set x-axis label, legend value description Style template Colors, line styles, marker styles, font styles, graph sizes, ODS graph template Titles, footnotes, legend styles, line styles, colors styles, marker styles, font styles, borders and graph dimentions Table 7. Source for Controlling ODS Graphics Components The following sample code is the modified template. The modified code is highlighted. The output is shown in Figure 13. proc template; define statgraph Stat.Lifetest.Graphics.Hazard / store = SASUSER.TEMPLAT; 16

17 dynamic NStrata; layout gridded / padbottom=5 padleft=0; EntryTitle "Protocol: XYZ Study 12345" / halign=left fontsize=10pt; EntryTitle "Population: Intent-to-Treat" / halign=left fontsize=10pt; EntryTitle "Figure 12 Hazard Function Estimate"/nAlign=center fontsize=15pt; if (NSTRATA=1) layout OVERLAY; seriesplot y=hazard x=midpoint / linecolor= StatGraphFitLine:contrastcolor markercolor= StatGraphFitLine:contrastcolor index=stratumnum markers=on name ="Hazard"; EndLayout; else layout lattice / rows=1 columns=1 border=false; sidebar / align=bottom; endsidebar; layout OVERLAY; seriesplot y=hazard x=midpoint / group=stratum index=stratumnum markers=on name="hazard"; DiscreteLegend "Hazard" / halign=left valign=bottom across=1 border=true; EndLayout; endif; entry "USERID:c:\tip2\a001ab.sas &sysdate &systime" / halign=left fontsize=10pt; EndLayout; end; Figure 13. Sample ODS Graphics with Customization OVERLAYING MULTIPLE ODS GRAPHICS Figure 11 demonstrates 3 default ODS Graphics from PROC LFETEST. A desired output is to overlay Survival graph and Confidence Bands graph together. It can be achieved by inserting Confidence Bands plots statement to Stat.Lifetest.Graphic.ProductLimit template. The bands statements are as follows: 17

18 Band ylimitupper=hw_ucl ylimitlower=hw_lcl x=time / group= STRATUM index=stratumnum modelname="survival" fill=true lines= true datatransparency=0.8; The output is shown in Figure 14. Figure 14. Overlaying ODS Graphics CONCLUSIONS Graphics output is an effective means to convey the information. The ability to produce a clear and elegant presentation can be achieved by utilizing the ODS features. This paper provides the following ODS features that can be used to enhance your graphics tasks:. * Use the ODS output dataset and convert the statistics to macro variables and then pass the macro variables to SAS/GRAPH FOOTNOTE statements. * Use the ODS output dataset and convert the statistics to macro variables and then pass the macro variables to a GPLOT NOTE statement. * Use GPRINT to convert the ODS output tables to a graphic file and use GREPLAY to combine the output from GPLOT and GPRINT on the same page. * Use the ODS destination to convert your graphic output to a clickable PDF or RTF file. * Use SAS/GRAPH statements to create a graph then use PROC PRINT to print the 18

19 ODS output tables on the same page. * Use SAS/GRAPH statements with PROC REPORT statements to control display layout and insert multiple graphs on one page. * Produce ODS Graphics as part of ODS output for modelling diagnosis or a first step of data analysis. * ODS Graphics can be produced easily but the modification of the default graph appearance involves Graphical Template Language. ACKNOWLEDGMENT The author would like to thank Wendy Ma for her suggestions and discussions on the topic of creating 2-row display layout. REFERENCES [1] CDISC website: [2] Delaney, Kevin,: Multiple Graphs on One Page, the easy way (PDF) and the hard way (RTF), Proceedings of Annual Conference of the SAS Users Group International, SUGI 28, Paper 94-28, April 2003 [3] Mitchell, R.M.: Thumbs Up For ODS Graphics, But Don t Throw Out All Your SAS/GRAPH Program, Proceedings of Annual Conference of the SAS Users Group International, SUGI 29, Paper , May 2004 [4] Robert N. Rodriguez: An Introduction to ODS for Statistical Graphics in SAS 9.1, Proceedings of Annual Conference of the SAS Users Group International, SUGI 29 Paper , May 2004 [5] [6] SAS Institute Inc.: SAS 9.1 Output Delivery System: User s Guide, SAS Institute Inc., Cary NC, USA. Jan [7] SAS Institute Inc.: The Analyst Application, Second Edition, SAS Institute Inc., Cary NC, USA [8] SAS Institute Inc.: SAS/STAT 9.1 User s Guide, SAS Institute Inc., Cary NC, USA. Jan [9] SAS Institute Inc.: The Complete Guide to the SAS Output Delivery System, Version 8, SAS Institute Inc., Cary NC, USA [10] Shannon, David,: To ODS RTF and Beyond, Proceedings of Annual Conference of the SAS Users Group International, SUGI 27, Paper 1-27, April 2002 [11] Watt, P.; Multiple-Plot Displays: Simplified with Macros, SAS Publishing, Books by Users press [12] Yeh, Shi-Tao: Tips to Enhance Your SAS Statistical Graphics Output, Proceedings of Annual Conference of the Pharmaceutical Industry SAS Users Group, PharmaSUG 2003, May 2003, pp [13] Zhou, Joanne: An Enhancement of Survival Graph Proceedings of Annual Conference of the Pharmaceutical Industry SAS Users Group, PharmaSUG 2003, May 2003, pp [14] Watt, P.; Multiple-Plot Displays: Simplified with Macros, SAS Publishing, Books by Users press TRADEMARKS SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies. AUTHOR CONTACT INFORMATION Shi-Tao Yeh, Ph. D. (610) (W) shi-tao_yeh-1@gsk.com 19

An Introduction to ODS for Statistical Graphics in SAS 9.1 Robert N. Rodriguez SAS Institute Inc., Cary, North Carolina, USA

An Introduction to ODS for Statistical Graphics in SAS 9.1 Robert N. Rodriguez SAS Institute Inc., Cary, North Carolina, USA An Introduction to ODS for Statistical Graphics in SAS 9.1 Robert N. Rodriguez SAS Institute Inc., Cary, North Carolina, USA ABSTRACT In SAS 9.1, over two dozen SAS/STAT and SAS/ETS procedures have been

More information

Interactive Graphs from the SAS System

Interactive Graphs from the SAS System Interactive Graphs from the SAS System Shi-Tao Yeh, GlaxoSmithKline, King of Prussia, PA. ABSTRACT An interactive graph is a dynamic graph interface that allows viewers interaction. The SAS System provides

More information

A Juxtaposition of Tables and Graphs Using SAS /GRAPH Procedures

A Juxtaposition of Tables and Graphs Using SAS /GRAPH Procedures A Juxtaposition of Tables and Graphs Using SAS /GRAPH Procedures Suhas R. Sanjee, MaxisIT Inc., Edison, NJ Sheng Zhang, Merck and Co., Upper Gwynedd, PA ABSTRACT Graphs provide high-impact visuals that

More information

A Plot & a Table per Page Times Hundreds in a Single PDF file

A Plot & a Table per Page Times Hundreds in a Single PDF file A Plot & a Table per Page Times Hundreds in a Single PDF file Daniel Leprince DIEM Computing Services, Inc. Elizabeth Li DIEM Computing Services, Inc. SAS is a registered trademark or trademark of SAS

More information

ODS LAYOUT is Like an Onion

ODS LAYOUT is Like an Onion Paper DP03_05 ODS LAYOUT is Like an Onion Rich Mays, University of Rochester Medical Center, Rochester, NY Abstract ODS LAYOUT is like an onion. They both make you cry? No! They both have layers! In version

More information

PharmaSUG 2015 Paper PO03

PharmaSUG 2015 Paper PO03 PharmaSUG 2015 Paper P03 A Visual Reflection on SAS/GRAPH History: Plot, Gplot, Greplay, and Sgrender Haibin Shu, AccuClin Global Services LLC, Wayne, PA John He, AccuClin Global Services LLC, Wayne, PA

More information

Multiple Graphical and Tabular Reports on One Page, Multiple Ways to Do It Niraj J Pandya, CT, USA

Multiple Graphical and Tabular Reports on One Page, Multiple Ways to Do It Niraj J Pandya, CT, USA Paper TT11 Multiple Graphical and Tabular Reports on One Page, Multiple Ways to Do It Niraj J Pandya, CT, USA ABSTRACT Creating different kind of reports for the presentation of same data sounds a normal

More information

Professional outputs with ODS LATEX

Professional outputs with ODS LATEX Paper TU04 Professional outputs with ODS LATEX Arnaud DAUCHY, Sanofi Aventis, Paris, France Solenn LE GUENNEC, Sanofi Aventis, Paris, France ABSTRACT ODS tagset and ODS markup have been embedded from SAS

More information

PROC CATALOG, the Wish Book SAS Procedure Louise Hadden, Abt Associates Inc., Cambridge, MA

PROC CATALOG, the Wish Book SAS Procedure Louise Hadden, Abt Associates Inc., Cambridge, MA ABSTRACT Paper CC58 PROC CATALOG, the Wish Book SAS Procedure Louise Hadden, Abt Associates Inc., Cambridge, MA SAS data sets have PROC DATASETS, and SAS catalogs have PROC CATALOG. Find out what the little

More information

Paper Abstract. Introduction. SAS Version 7/8 Web Tools. Using ODS to Create HTML Formatted Output. Background

Paper Abstract. Introduction. SAS Version 7/8 Web Tools. Using ODS to Create HTML Formatted Output. Background Paper 43-25 The International Studies Project : SAS Version 7/8 Web Tools To The Rescue Lilin She, UNC-CH, Department Of Biostatistics, Chapel Hill, NC Jeffrey M. Abolafia, UNC-CH, Department Of Biostatistics,

More information

Introduction to SAS/GRAPH Statistical Graphics Procedures

Introduction to SAS/GRAPH Statistical Graphics Procedures 3 CHAPTER 1 Introduction to SAS/GRAPH Statistical Graphics Procedures Overview of SAS/GRAPH Statistical Graphics Procedures 3 Introduction to the SGPLOT Procedure 4 Introduction to the SGPANEL Procedure

More information

SUGI 29 Posters. Paper A Group Scatter Plot with Clustering Xiaoli Hu, Wyeth Consumer Healthcare., Madison, NJ

SUGI 29 Posters. Paper A Group Scatter Plot with Clustering Xiaoli Hu, Wyeth Consumer Healthcare., Madison, NJ Paper 146-29 A Group Scatter Plot with Clustering Xiaoli Hu, Wyeth Consumer Healthcare., Madison, NJ ABSTRACT In pharmacokinetic studies, abnormally high values of maximum plasma concentration Cmax of

More information

EXPORTING SAS OUTPUT ONTO THE WORLD WIDE WEB

EXPORTING SAS OUTPUT ONTO THE WORLD WIDE WEB EXPORTING SAS OUTPUT ONTO THE WORLD WIDE WEB Shi-Tao Yeh, EDP Contract Services Andrew C. Yeh, Relyt Technologies Inc. ABSTRACT This paper presents a step by step demostration of exporting SAS list and

More information

Data Annotations in Clinical Trial Graphs Sudhir Singh, i3 Statprobe, Cary, NC

Data Annotations in Clinical Trial Graphs Sudhir Singh, i3 Statprobe, Cary, NC PharmaSUG2010 - Paper TT16 Data Annotations in Clinical Trial Graphs Sudhir Singh, i3 Statprobe, Cary, NC ABSTRACT Graphical representation of clinical data is used for concise visual presentations of

More information

SAS CLINICAL SYLLABUS. DURATION: - 60 Hours

SAS CLINICAL SYLLABUS. DURATION: - 60 Hours SAS CLINICAL SYLLABUS DURATION: - 60 Hours BASE SAS PART - I Introduction To Sas System & Architecture History And Various Modules Features Variables & Sas Syntax Rules Sas Data Sets Data Set Options Operators

More information

Overview 14 Table Definitions and Style Definitions 16 Output Objects and Output Destinations 18 ODS References and Resources 20

Overview 14 Table Definitions and Style Definitions 16 Output Objects and Output Destinations 18 ODS References and Resources 20 Contents Acknowledgments xiii About This Book xv Part 1 Introduction 1 Chapter 1 Why Use ODS? 3 Limitations of SAS Listing Output 4 Difficulties with Importing Standard Listing Output into a Word Processor

More information

Using MACRO and SAS/GRAPH to Efficiently Assess Distributions. Paul Walker, Capital One

Using MACRO and SAS/GRAPH to Efficiently Assess Distributions. Paul Walker, Capital One Using MACRO and SAS/GRAPH to Efficiently Assess Distributions Paul Walker, Capital One INTRODUCTION A common task in data analysis is assessing the distribution of variables by means of univariate statistics,

More information

Chapter 1 Introduction. Chapter Contents

Chapter 1 Introduction. Chapter Contents Chapter 1 Introduction Chapter Contents OVERVIEW OF SAS/STAT SOFTWARE................... 17 ABOUT THIS BOOK.............................. 17 Chapter Organization............................. 17 Typographical

More information

Paper SIB-096. Richard A. DeVenezia, Independent Consultant, Remsen, NY

Paper SIB-096. Richard A. DeVenezia, Independent Consultant, Remsen, NY Paper SIB-096 Tag Clouds - A list of tokens, sized by relative frequency Richard A. DeVenezia, Independent Consultant, Remsen, NY Abstract A tag cloud is a list of tokens, wherein the text size of a token

More information

MANAGING SAS/GRAPH DISPLAYS WITH THE GREPLAY PROCEDURE. Perry Watts IMS Health

MANAGING SAS/GRAPH DISPLAYS WITH THE GREPLAY PROCEDURE. Perry Watts IMS Health MANAGING SAS/GRAPH DISPLAYS WITH THE PROCEDURE Perry Watts IMS Health Abstract PROC is used for redisplaying graphs that have been stored in temporary or permanent catalogs. This tutorial will show how

More information

Essential ODS Techniques for Creating Reports in PDF Patrick Thornton, SRI International, Menlo Park, CA

Essential ODS Techniques for Creating Reports in PDF Patrick Thornton, SRI International, Menlo Park, CA Thornton, S. P. (2006). Essential ODS techniques for creating reports in PDF. Paper presented at the Fourteenth Annual Western Users of the SAS Software Conference, Irvine, CA. Essential ODS Techniques

More information

Using SAS/GRAPH Software to Create Graphs on the Web Himesh Patel, SAS Institute Inc., Cary, NC Revised by David Caira, SAS Institute Inc.

Using SAS/GRAPH Software to Create Graphs on the Web Himesh Patel, SAS Institute Inc., Cary, NC Revised by David Caira, SAS Institute Inc. Paper 189 Using SAS/GRAPH Software to Create Graphs on the Web Himesh Patel, SAS Institute Inc., Cary, NC Revised by David Caira, SAS Institute Inc., Cary, NC ABSTRACT This paper highlights some ways of

More information

Week 05 Class Activities

Week 05 Class Activities Week 05 Class Activities File: week-05-24sep07.doc Directory (hp/compaq): C:\baileraj\Classes\Fall 2007\sta402\handouts Directory: \\Muserver2\USERS\B\\baileraj\Classes\sta402\handouts Better Graphics

More information

SAS/GRAPH Introduction. Winfried Jakob, SAS Administrator Canadian Institute for Health Information

SAS/GRAPH Introduction. Winfried Jakob, SAS Administrator Canadian Institute for Health Information SAS/GRAPH Introduction Winfried Jakob, SAS Administrator Canadian Institute for Health Information 1 Agenda Overview Components of SAS/GRAPH Software Device-Based vs. Template-Based Graphics Graph Types

More information

The Power of the Graphics Template Language Jeff Cartier, SAS Institute Inc., Cary, NC

The Power of the Graphics Template Language Jeff Cartier, SAS Institute Inc., Cary, NC The Power of the Graphics Template Language Jeff Cartier, SAS Institute Inc., Cary, NC ABSTRACT In SAS 9.2, the ODS Graphics Template Language becomes production software. You will see more SAS procedures

More information

separate representations of data.

separate representations of data. 1 It s been said that there are two kinds of people in the world: those who divide everything into two groups, and those who don t. To taxonomists, these folks are commonly known as lumpers and splitters.

More information

ODS GRAPHICS DESIGNER (Creating Templates for Batchable Graphs)

ODS GRAPHICS DESIGNER (Creating Templates for Batchable Graphs) ODS GRAPHICS DESIGNER (Creating Templates for Batchable Graphs) Golden Horseshoe SAS User Group October 14, 2011 Barry Hong BYHong@uss.com 2011 History of SAS Graphics In the beginning there was PROC PLOT

More information

Innovative Graph for Comparing Central Tendencies and Spread at a Glance

Innovative Graph for Comparing Central Tendencies and Spread at a Glance Paper 140-28 Innovative Graph for Comparing Central Tendencies and Spread at a Glance Varsha C. Shah, CSCC, Dept. of Biostatistics, UNC-CH, Chapel Hill, NC Ravi M. Mathew, CSCC,Dept. of Biostatistics,

More information

Macros for creating a custom report of figures

Macros for creating a custom report of figures ABSTRACT SESUG Paper AD-101-2017 Macros for creating a custom report of figures Laura Williams, CROS NT LLC Often, with clinical studies, a report that includes both tables and figures can be preferred.

More information

Introduction to Statistical Graphics Procedures

Introduction to Statistical Graphics Procedures Introduction to Statistical Graphics Procedures Selvaratnam Sridharma, U.S. Census Bureau, Washington, DC ABSTRACT SAS statistical graphics procedures (SG procedures) that were introduced in SAS 9.2 help

More information

Developing Graphical Standards: A Collaborative, Cross-Functional Approach Mayur Uttarwar, Seattle Genetics, Inc., Bothell, WA

Developing Graphical Standards: A Collaborative, Cross-Functional Approach Mayur Uttarwar, Seattle Genetics, Inc., Bothell, WA PharmaSUG 2014 - DG03 Developing Graphical Standards: A Collaborative, Cross-Functional Approach Mayur Uttarwar, Seattle Genetics, Inc., Bothell, WA ABSTRACT Murali Kanakenahalli, Seattle Genetics, Inc.,

More information

Stylish Waterfall Graphs using SAS 9.3 and 9.4 Graph Template Language

Stylish Waterfall Graphs using SAS 9.3 and 9.4 Graph Template Language Paper 1586-2014 Stylish Waterfall Graphs using SAS 9.3 and 9.4 Graph Template Language Setsuko Chiba, Exelixis Inc. South San Francisco, CA ABSTRACT One stylish graph provides a clear picture of data summaries

More information

CREATING STATISTICAL GRAPHICS IN SAS

CREATING STATISTICAL GRAPHICS IN SAS CREATING STATISTICAL GRAPHICS IN SAS INTRODUCING SG ANNOTATION AND ATTRIBUTE MAPS HIGHLY CUSTOMIZED GRAPHS USING ODS GRAPHICS WARREN F. KUHFELD, SAS INSTITUTE INC. Copyright 2016, SAS Institute Inc. All

More information

Thumbs Up For ODS Graphics, But Don t Throw Out All Your SAS/GRAPH Programs!

Thumbs Up For ODS Graphics, But Don t Throw Out All Your SAS/GRAPH Programs! Paper 083-29 Thumbs Up For ODS Graphics, But Don t Throw Out All Your SAS/GRAPH Programs! Rick M. Mitchell, Westat, Rockville, MD ABSTRACT A huge sigh of relief can be heard throughout the SAS/GRAPH community

More information

Paper An Automated Reporting Macro to Create Cell Index An Enhanced Revisit. Shi-Tao Yeh, GlaxoSmithKline, King of Prussia, PA

Paper An Automated Reporting Macro to Create Cell Index An Enhanced Revisit. Shi-Tao Yeh, GlaxoSmithKline, King of Prussia, PA ABSTRACT Paper 236-28 An Automated Reporting Macro to Create Cell Index An Enhanced Revisit When generating tables from SAS PROC TABULATE or PROC REPORT to summarize data, sometimes it is necessary to

More information

PharmaSUG China. model to include all potential prognostic factors and exploratory variables, 2) select covariates which are significant at

PharmaSUG China. model to include all potential prognostic factors and exploratory variables, 2) select covariates which are significant at PharmaSUG China A Macro to Automatically Select Covariates from Prognostic Factors and Exploratory Factors for Multivariate Cox PH Model Yu Cheng, Eli Lilly and Company, Shanghai, China ABSTRACT Multivariate

More information

ODS DOCUMENT, a practical example. Ruurd Bennink, OCS Consulting B.V., s-hertogenbosch, the Netherlands

ODS DOCUMENT, a practical example. Ruurd Bennink, OCS Consulting B.V., s-hertogenbosch, the Netherlands Paper CC01 ODS DOCUMENT, a practical example Ruurd Bennink, OCS Consulting B.V., s-hertogenbosch, the Netherlands ABSTRACT The ODS DOCUMENT destination (in short ODS DOCUMENT) is perhaps the most underutilized

More information

A SAS Macro to Generate Caterpillar Plots. Guochen Song, i3 Statprobe, Cary, NC

A SAS Macro to Generate Caterpillar Plots. Guochen Song, i3 Statprobe, Cary, NC PharmaSUG2010 - Paper CC21 A SAS Macro to Generate Caterpillar Plots Guochen Song, i3 Statprobe, Cary, NC ABSTRACT Caterpillar plots are widely used in meta-analysis and it only requires a click in software

More information

Square Peg, Square Hole Getting Tables to Fit on Slides in the ODS Destination for PowerPoint

Square Peg, Square Hole Getting Tables to Fit on Slides in the ODS Destination for PowerPoint PharmaSUG 2018 - Paper DV-01 Square Peg, Square Hole Getting Tables to Fit on Slides in the ODS Destination for PowerPoint Jane Eslinger, SAS Institute Inc. ABSTRACT An output table is a square. A slide

More information

Paper TS05. NOTE: To keep the paper compact, screen images have usually been clipped to show only the essential parts of the displayed result.

Paper TS05. NOTE: To keep the paper compact, screen images have usually been clipped to show only the essential parts of the displayed result. Paper TS05 Getting Started with, and Getting the Most out of, SAS ODS PDF: No Mastery of PROC TEMPLATE Required LeRoy Bessler, Assurant Health, Milwaukee, USA, bessler@execpc.com Abstract Adobe's Portable

More information

Developing a Dashboard to Aid in Effective Project Management

Developing a Dashboard to Aid in Effective Project Management Developing a Dashboard to Aid in Effective Project Management M. Paige Borden, University of Central Florida, Orlando, FL Maureen Murray, University of Central Florida, Orlando, FL Ali Yorkos, University

More information

Generating Participant Specific Figures Using SAS Graphic Procedures Carry Croghan and Marsha Morgan, EPA, Research Triangle Park, NC

Generating Participant Specific Figures Using SAS Graphic Procedures Carry Croghan and Marsha Morgan, EPA, Research Triangle Park, NC DP05 Generating Participant Specific Figures Using SAS Graphic Procedures Carry Croghan and Marsha Morgan, EPA, Research Triangle Park, NC ABSTRACT An important part of our research at the US Environmental

More information

The Implementation of Display Auto-Generation with Analysis Results Metadata Driven Method

The Implementation of Display Auto-Generation with Analysis Results Metadata Driven Method PharmaSUG 2015 - Paper AD01 The Implementation of Display Auto-Generation with Analysis Results Metadata Driven Method Chengxin Li, Boehringer Ingelheim Pharmaceuticals Inc., Ridgefield, CT, USA ABSTRACT

More information

The GSLIDE Procedure. Overview. About Text Slides CHAPTER 27

The GSLIDE Procedure. Overview. About Text Slides CHAPTER 27 959 CHAPTER 27 The GSLIDE Procedure Overview 959 About Text Slides 959 About Annotate Output 960 Procedure Syntax 960 PROC GSLIDE Statement 961 Examples 963 Example 1: Producing Text Slides 963 Example

More information

Getting Started with ODS Statistical Graphics in SAS 9.2 Revised 2009 Robert N. Rodriguez, SAS Institute Inc., Cary, NC

Getting Started with ODS Statistical Graphics in SAS 9.2 Revised 2009 Robert N. Rodriguez, SAS Institute Inc., Cary, NC Getting Started with ODS Statistical Graphics in SAS 9.2 Revised 2009 Robert N. Rodriguez, SAS Institute Inc., Cary, NC ABSTRACT ODS Statistical Graphics (or ODS Graphics for short) is major new functionality

More information

PharmaSUG Paper SP09

PharmaSUG Paper SP09 PharmaSUG 2013 - Paper SP09 SAS 9.3: Better graphs, Easier lives for SAS programmers, PK scientists and pharmacometricians Alice Zong, Janssen Research & Development, LLC, Spring House, PA ABSTRACT Data

More information

Run your reports through that last loop to standardize the presentation attributes

Run your reports through that last loop to standardize the presentation attributes PharmaSUG2011 - Paper TT14 Run your reports through that last loop to standardize the presentation attributes Niraj J. Pandya, Element Technologies Inc., NJ ABSTRACT Post Processing of the report could

More information

When Simpler is Better Visualizing Laboratory Data Using SG Procedures Wei Cheng, Isis Pharmaceuticals, Inc., Carlsbad, CA

When Simpler is Better Visualizing Laboratory Data Using SG Procedures Wei Cheng, Isis Pharmaceuticals, Inc., Carlsbad, CA When Simpler is Better Visualizing Laboratory Data Using SG Procedures Wei Cheng, Isis Pharmaceuticals, Inc., Carlsbad, CA ABSTRACT In SAS 9.2, SAS/GRAPH introduces a family of new procedures to create

More information

Paper CC01 Sort Your SAS Graphs and Create a Bookmarked PDF Document Using ODS PDF ABSTRACT INTRODUCTION

Paper CC01 Sort Your SAS Graphs and Create a Bookmarked PDF Document Using ODS PDF ABSTRACT INTRODUCTION Paper CC01 Sort Your SAS Graphs and Create a Bookmarked PDF Document Using ODS PDF Dirk Spruck, Accovion GmbH, Marburg, Germany Monika Kawohl, Accovion GmbH, Marburg, Germany ABSTRACT Graphs are a great

More information

Customizing Survival Curves

Customizing Survival Curves Customizing Survival Curves Jeremy Hamm Cancer Surveillance & Outcomes (CSO) Population Oncology BC Cancer Agency Outline Survival Curve Basics Using Proc Template Using Proc SGPlot 2 Analysis Using dataset

More information

Creating Graphs Using SAS ODS Graphics Designer

Creating Graphs Using SAS ODS Graphics Designer Creating Graphs Using SAS ODS Graphics Designer William Knabe Former Director of Statistical Applications, UI Information Technology Services SAS Summer Training Institute 2016 Slide 1 Overview. Evolution

More information

Quick Results with the Output Delivery System

Quick Results with the Output Delivery System Paper 58-27 Quick Results with the Output Delivery System Sunil K. Gupta, Gupta Programming, Simi Valley, CA ABSTRACT SAS s new Output Delivery System (ODS) opens a whole new world of options in generating

More information

SAS Online Training: Course contents: Agenda:

SAS Online Training: Course contents: Agenda: SAS Online Training: Course contents: Agenda: (1) Base SAS (6) Clinical SAS Online Training with Real time Projects (2) Advance SAS (7) Financial SAS Training Real time Projects (3) SQL (8) CV preparation

More information

Compute; Your Future with Proc Report

Compute; Your Future with Proc Report Paper PO10 Compute; Your Future with Proc Report Ian J Dixon, GlaxoSmithKline, Harlow, UK Suzanne E Johnes, GlaxoSmithKline, Harlow, UK ABSTRACT PROC REPORT is widely used within the pharmaceutical industry

More information

SAS Training BASE SAS CONCEPTS BASE SAS:

SAS Training BASE SAS CONCEPTS BASE SAS: SAS Training BASE SAS CONCEPTS BASE SAS: Dataset concept and creating a dataset from internal data Capturing data from external files (txt, CSV and tab) Capturing Non-Standard data (date, time and amounts)

More information

From Getting Started with the Graph Template Language in SAS. Full book available for purchase here.

From Getting Started with the Graph Template Language in SAS. Full book available for purchase here. From Getting Started with the Graph Template Language in SAS. Full book available for purchase here. Contents About This Book... xi About The Author... xv Acknowledgments...xvii Chapter 1: Introduction

More information

Please login. Take a seat Login with your HawkID Locate SAS 9.3. Raise your hand if you need assistance. Start / All Programs / SAS / SAS 9.

Please login. Take a seat Login with your HawkID Locate SAS 9.3. Raise your hand if you need assistance. Start / All Programs / SAS / SAS 9. Please login Take a seat Login with your HawkID Locate SAS 9.3 Start / All Programs / SAS / SAS 9.3 (64 bit) Raise your hand if you need assistance Introduction to SAS Procedures Sarah Bell Overview Review

More information

Displaying Multiple Graphs to Quickly Assess Patient Data Trends

Displaying Multiple Graphs to Quickly Assess Patient Data Trends Paper AD11 Displaying Multiple Graphs to Quickly Assess Patient Data Trends Hui Ping Chen and Eugene Johnson, Eli Lilly and Company, Indianapolis, IN ABSTRACT Populating multiple graphs, up to 15, on a

More information

Creating and Customizing Graphics using Graph Template Language

Creating and Customizing Graphics using Graph Template Language PharmaSUG 2018 - Paper EP-17 Creating and Customizing Graphics using Graph Template Language ABSTRACT Yanmei Zhang, Saihua Liu, Titania Dumas-Roberson, Grifols Inc Graph Template Language (GTL) is a powerful

More information

Presentation Quality Bulleted Lists Using ODS in SAS 9.2. Karl M. Kilgore, PhD, Cetus Group, LLC, Timonium, MD

Presentation Quality Bulleted Lists Using ODS in SAS 9.2. Karl M. Kilgore, PhD, Cetus Group, LLC, Timonium, MD Presentation Quality Bulleted Lists Using ODS in SAS 9.2 Karl M. Kilgore, PhD, Cetus Group, LLC, Timonium, MD ABSTRACT Business reports frequently include bulleted lists of items: summary conclusions from

More information

Great Time to Learn GTL

Great Time to Learn GTL ABSTRACT PharmaSUG 018 - Paper EP-18 Great Time to Learn GTL Kriss Harris, SAS Specialists Limited; Richann Watson, DataRich Consulting It s a Great Time to Learn GTL! Do you want to be more confident

More information

And Now, Presenting...

And Now, Presenting... SAS Graphics on ODS 9.2 Performance-Enhancing Steroids Daniel O Connor, SAS Institute Inc, Cary, NC ABSTRACT In the midst of performance-enhancing drug scandals in professional sports, you would think

More information

My Reporting Requires a Full Staff Help!

My Reporting Requires a Full Staff Help! ABSTRACT Paper GH-03 My Reporting Requires a Full Staff Help! Erin Lynch, Daniel O Connor, Himesh Patel, SAS Institute Inc., Cary, NC With cost cutting and reduced staff, everyone is feeling the pressure

More information

PharmaSUG China Paper 059

PharmaSUG China Paper 059 PharmaSUG China 2016 - Paper 059 Using SAS @ to Assemble Output Report Files into One PDF File with Bookmarks Sam Wang, Merrimack Pharmaceuticals, Inc., Cambridge, MA Kaniz Khalifa, Leaf Research Services,

More information

Paper: PO19 ARROW Statistical Graphic System ABSTRACT INTRODUCTION pagesize=, layout=, textsize=, lines=, symbols=, outcolor=, outfile=,

Paper: PO19 ARROW Statistical Graphic System ABSTRACT INTRODUCTION pagesize=, layout=, textsize=, lines=, symbols=, outcolor=, outfile=, Paper: PO19 ARROW Statistical Graphic System Cheng Jun Tian, Johnson & Johnson PRD, Titusville, New Jersey, 08560 Qin Li, Johnson & Johnson PRD, Titusville, New Jersey, 08560 Jiangfan Li, Johnson & Johnson

More information

Presentation Quality Graphics with SAS/GRAPH

Presentation Quality Graphics with SAS/GRAPH Presentation Quality Graphics with SAS/GRAPH Keith Cranford, Marquee Associates, LLC Abstract The SASI GRAP~ Annotate Facilily along with hardware fonts can be used to produce presentation qualily graphics

More information

Module I: Clinical Trials a Practical Guide to Design, Analysis, and Reporting 1. Fundamentals of Trial Design

Module I: Clinical Trials a Practical Guide to Design, Analysis, and Reporting 1. Fundamentals of Trial Design Module I: Clinical Trials a Practical Guide to Design, Analysis, and Reporting 1. Fundamentals of Trial Design Randomized the Clinical Trails About the Uncontrolled Trails The protocol Development The

More information

Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA

Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA SESUG 2012 Paper HW-01 Getting Up to Speed with PROC REPORT Kimberly LeBouton, K.J.L. Computing, Rossmoor, CA ABSTRACT Learning the basics of PROC REPORT can help the new SAS user avoid hours of headaches.

More information

PharmaSUG Paper TT10 Creating a Customized Graph for Adverse Event Incidence and Duration Sanjiv Ramalingam, Octagon Research Solutions Inc.

PharmaSUG Paper TT10 Creating a Customized Graph for Adverse Event Incidence and Duration Sanjiv Ramalingam, Octagon Research Solutions Inc. Abstract PharmaSUG 2011 - Paper TT10 Creating a Customized Graph for Adverse Event Incidence and Duration Sanjiv Ramalingam, Octagon Research Solutions Inc. Adverse event (AE) analysis is a critical part

More information

A Macro to Manage Table Templates Mark Mihalyo, Community Care Behavioral Health Organization, Pittsburgh, PA

A Macro to Manage Table Templates Mark Mihalyo, Community Care Behavioral Health Organization, Pittsburgh, PA A Macro to Manage Table Templates Mark Mihalyo, Community Care Behavioral Health Organization, Pittsburgh, PA ABSTRACT The scenario: Data must be placed in a table or chart design provided by the company

More information

Combining TLFs into a Single File Deliverable William Coar, Axio Research, Seattle, WA

Combining TLFs into a Single File Deliverable William Coar, Axio Research, Seattle, WA PharmaSUG 2016 - Paper HT06 Combining TLFs into a Single File Deliverable William Coar, Axio Research, Seattle, WA ABSTRACT In day-to-day operations of a Biostatistics and Statistical Programming department,

More information

Customizing a Multi-Cell Graph Created with SAS ODS Graphics Designer Yanhong Liu, Cincinnati Children s Hospital Medical Center, Cincinnati, OH

Customizing a Multi-Cell Graph Created with SAS ODS Graphics Designer Yanhong Liu, Cincinnati Children s Hospital Medical Center, Cincinnati, OH PT-05 Customizing a Multi-Cell Graph Created with SAS ODS Graphics Designer Yanhong Liu, Cincinnati Children s Hospital Medical Center, Cincinnati, OH ABSTRACT Combining multiple graphs and/or statistical

More information

A Generalized Macro-Based Data Reporting System to Produce Both HTML and Text Files

A Generalized Macro-Based Data Reporting System to Produce Both HTML and Text Files A Generalized Macro-Based Data Reporting System to Produce Both HTML and Text Files Jeff F. Sun, Blue Cross Blue Shield of North Carolina, Durham, North Carolina Abstract This paper will address the inter-connection

More information

This paper describes a report layout for reporting adverse events by study consumption pattern and explains its programming aspects.

This paper describes a report layout for reporting adverse events by study consumption pattern and explains its programming aspects. PharmaSUG China 2015 Adverse Event Data Programming for Infant Nutrition Trials Ganesh Lekurwale, Singapore Clinical Research Institute, Singapore Parag Wani, Singapore Clinical Research Institute, Singapore

More information

ODS/RTF Pagination Revisit

ODS/RTF Pagination Revisit PharmaSUG 2018 - Paper QT-01 ODS/RTF Pagination Revisit Ya Huang, Halozyme Therapeutics, Inc. Bryan Callahan, Halozyme Therapeutics, Inc. ABSTRACT ODS/RTF combined with PROC REPORT has been used to generate

More information

ABSTRACT INTRODUCTION THE ODS TAGSET FACILITY

ABSTRACT INTRODUCTION THE ODS TAGSET FACILITY Graphs in Flash Using the Graph Template Language Himesh Patel, SAS Institute Inc., Cary, NC David Kelley, SAS Institute Inc., Cary, NC Dan Heath, SAS Institute Inc., Cary, NC ABSTRACT The Graph Template

More information

Interactive Programming Using Task in SAS Studio

Interactive Programming Using Task in SAS Studio ABSTRACT PharmaSUG 2018 - Paper QT-10 Interactive Programming Using Task in SAS Studio Suwen Li, Hoffmann-La Roche Ltd., Mississauga, ON SAS Studio is a web browser-based application with visual point-and-click

More information

SAS (Statistical Analysis Software/System)

SAS (Statistical Analysis Software/System) SAS (Statistical Analysis Software/System) Clinical SAS:- Class Room: Training Fee & Duration : 23K & 3 Months Online: Training Fee & Duration : 25K & 3 Months Learning SAS: Getting Started with SAS Basic

More information

Graphically Enhancing the Visual Presentation and Analysis of Univariate Data Using SAS Software

Graphically Enhancing the Visual Presentation and Analysis of Univariate Data Using SAS Software Graphically Enhancing the Visual Presentation and Analysis of Univariate Data Using SAS Software James R. O Hearn, Pfizer Inc., New York, NY ABSTRACT The problem of analyzing univariate data is investigated.

More information

A Fully Automated Approach to Concatenate RTF outputs and Create TOC Zhiping Yan, Covance, Beijing, China Lugang Xie, Merck, Princeton, US

A Fully Automated Approach to Concatenate RTF outputs and Create TOC Zhiping Yan, Covance, Beijing, China Lugang Xie, Merck, Princeton, US PharmaSUG China 2015 - Paper 28X-B9F7B4B9P8 A Fully Automated Approach to Concatenate RTF outputs and Create TOC Zhiping Yan, Covance, Beijing, China Lugang Xie, Merck, Princeton, US ABSTRACT Statistical

More information

SAS Web Report Studio 3.1

SAS Web Report Studio 3.1 SAS Web Report Studio 3.1 User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2006. SAS Web Report Studio 3.1: User s Guide. Cary, NC: SAS

More information

PharmaSUG China 2018 Paper AD-62

PharmaSUG China 2018 Paper AD-62 PharmaSUG China 2018 Paper AD-62 Decomposition and Reconstruction of TLF Shells - A Simple, Fast and Accurate Shell Designer Chengeng Tian, dmed Biopharmaceutical Co., Ltd., Shanghai, China ABSTRACT Table/graph

More information

TLFs: Replaying Rather than Appending William Coar, Axio Research, Seattle, WA

TLFs: Replaying Rather than Appending William Coar, Axio Research, Seattle, WA ABSTRACT PharmaSUG 2013 - Paper PO16 TLFs: Replaying Rather than Appending William Coar, Axio Research, Seattle, WA In day-to-day operations of a Biostatistics and Statistical Programming department, we

More information

Coders' Corner. Paper ABSTRACT GLOBAL STATEMENTS INTRODUCTION

Coders' Corner. Paper ABSTRACT GLOBAL STATEMENTS INTRODUCTION Paper 70-26 Data Visualization of Outliers from a Health Research Perspective Using SAS/GRAPH and the Annotate Facility Nadia Redmond Kaiser Permanente Center for Health Research, Portland, Oregon ABSTRACT

More information

Top Award and First Place Best Presentation of Data Lan Tran-La. Scios Nova, Inc. BLOOD PRESSURE AND HEART RATE vs TIME

Top Award and First Place Best Presentation of Data Lan Tran-La. Scios Nova, Inc. BLOOD PRESSURE AND HEART RATE vs TIME Top Award and First Place Best Presentation of Data Lan Tran-La Scios Nova, Inc. BLOOD PRESSURE AND HEART RATE vs TIME Vital signs were collected before, during, and after the infusion of Drug A. At the

More information

PharmaSUG 2013 PO05. ADaM Datasets for Graphs Kevin Lee, Cytel, Inc., Chesterbrook, PA Chris Holland, Amgen, Rockville, MD

PharmaSUG 2013 PO05. ADaM Datasets for Graphs Kevin Lee, Cytel, Inc., Chesterbrook, PA Chris Holland, Amgen, Rockville, MD PharmaSUG 2013 PO05 ADaM Datasets for Graphs Kevin Lee, Cytel, Inc., Chesterbrook, PA Chris Holland, Amgen, Rockville, MD ABSTRACT The paper is intended for clinical trial SAS programmers who create graphs

More information

Lex Jansen Octagon Research Solutions, Inc.

Lex Jansen Octagon Research Solutions, Inc. Converting the define.xml to a Relational Database to Enable Printing and Validation Lex Jansen Octagon Research Solutions, Inc. Leading the Electronic Transformation of Clinical R&D * PharmaSUG 2009,

More information

General Methods to Use Special Characters Dennis Gianneschi, Amgen Inc., Thousand Oaks, CA

General Methods to Use Special Characters Dennis Gianneschi, Amgen Inc., Thousand Oaks, CA General Methods to Use Special Characters Dennis Gianneschi, Amgen Inc., Thousand Oaks, CA ABSTRACT This paper presents three general methods to use special characters in SAS procedure output as well as

More information

UTILIZING SAS TO CREATE A PATIENT'S LIVER ENZYME PROFILE. Erik S. Larsen, Price Waterhouse LLP

UTILIZING SAS TO CREATE A PATIENT'S LIVER ENZYME PROFILE. Erik S. Larsen, Price Waterhouse LLP UTILIZING SAS TO CREATE A PATIENT'S LIVER ENZYME PROFILE Erik S. Larsen, Price Waterhouse LLP In pharmaceutical research and drug development, it is usually necessary to assess the safety of the experimental

More information

Kaplan-Meier Survival Plotting Macro %NEWSURV Jeffrey Meyers, Mayo Clinic, Rochester, Minnesota

Kaplan-Meier Survival Plotting Macro %NEWSURV Jeffrey Meyers, Mayo Clinic, Rochester, Minnesota PharmaSUG 2014 - Paper BB13 Kaplan-Meier Survival Plotting Macro %NEWSURV Jeffrey Meyers, Mayo Clinic, Rochester, Minnesota 1.0 ABSTRACT The research areas of pharmaceuticals and oncology clinical trials

More information

A Way to Work with Invoice Files in SAS

A Way to Work with Invoice Files in SAS A Way to Work with Invoice Files in SAS Anjan Matlapudi and J. Daniel Knapp Pharmacy Informatics, PerformRx, The Next Generation PBM, 200 Stevens Drive, Philadelphia, PA 19113 ABSTRACT This paper illustrates

More information

Statistics and Data Analysis. Common Pitfalls in SAS Statistical Analysis Macros in a Mass Production Environment

Statistics and Data Analysis. Common Pitfalls in SAS Statistical Analysis Macros in a Mass Production Environment Common Pitfalls in SAS Statistical Analysis Macros in a Mass Production Environment Huei-Ling Chen, Merck & Co., Inc., Rahway, NJ Aiming Yang, Merck & Co., Inc., Rahway, NJ ABSTRACT Four pitfalls are commonly

More information

PDF Multi-Level Bookmarks via SAS

PDF Multi-Level Bookmarks via SAS Paper TS04 PDF Multi-Level Bookmarks via SAS Steve Griffiths, GlaxoSmithKline, Stockley Park, UK ABSTRACT Within the GlaxoSmithKline Oncology team we recently experienced an issue within our patient profile

More information

How to improve your figure An overview of annotation techniques in Graph Template Language

How to improve your figure An overview of annotation techniques in Graph Template Language Paper CS06 How to improve your figure An overview of annotation techniques in Graph Template Language Konrad Żywno, inventiv Health Clinical, Berlin, Germany Bartosz Kutyła, SAS Institute, Warsaw, Poland

More information

A Programmer s Introduction to the Graphics Template Language Jeff Cartier, SAS Institute Inc., Cary, NC

A Programmer s Introduction to the Graphics Template Language Jeff Cartier, SAS Institute Inc., Cary, NC Paper 262-31 A Programmer s Introduction to the Graphics Template Language Jeff Cartier, SAS Institute Inc., Cary, NC ABSTRACT In SAS 9.2, the ODS Graphics Template Language (GTL) becomes production software.

More information

USING SAS PROC GREPLAY WITH ANNOTATE DATA SETS FOR EFFECTIVE MULTI-PANEL GRAPHICS Walter T. Morgan, R. J. Reynolds Tobacco Company ABSTRACT

USING SAS PROC GREPLAY WITH ANNOTATE DATA SETS FOR EFFECTIVE MULTI-PANEL GRAPHICS Walter T. Morgan, R. J. Reynolds Tobacco Company ABSTRACT USING SAS PROC GREPLAY WITH ANNOTATE DATA SETS FOR EFFECTIVE MULTI-PANEL GRAPHICS Walter T. Morgan, R. J. Reynolds Tobacco Company ABSTRACT This presentation introduces SAS users to PROC GREPLAY and the

More information

Contents of SAS Programming Techniques

Contents of SAS Programming Techniques Contents of SAS Programming Techniques Chapter 1 About SAS 1.1 Introduction 1.1.1 SAS modules 1.1.2 SAS module classification 1.1.3 SAS features 1.1.4 Three levels of SAS techniques 1.1.5 Chapter goal

More information

IT S THE LINES PER PAGE THAT COUNTS Jonathan Squire, C2RA, Cambridge, MA Johnny Tai, Comsys, Portage, MI

IT S THE LINES PER PAGE THAT COUNTS Jonathan Squire, C2RA, Cambridge, MA Johnny Tai, Comsys, Portage, MI IT S THE LINES PER PAGE THAT COUNTS Jonathan Squire, C2RA, Cambridge, MA Johnny Tai, Comsys, Portage, MI ABSTRACT When the bodytitle option is used to keep titles and footnotes independent of the table

More information

Applications Development. Paper 24-27

Applications Development. Paper 24-27 Paper 24-27 Optimizing SAS Version 8 in a Windows Environment from the User Interface to Automated Document Production Roger D. Muller, Ph.D., Elanco Animal Health, Indianapolis, IN ABSTRACT The Microsoft

More information

SESUG Paper RIV An Obvious Yet Helpful Guide to Developing Recurring Reports in SAS. Rachel Straney, University of Central Florida

SESUG Paper RIV An Obvious Yet Helpful Guide to Developing Recurring Reports in SAS. Rachel Straney, University of Central Florida SESUG Paper RIV-156-2017 An Obvious Yet Helpful Guide to Developing Recurring Reports in SAS Rachel Straney, University of Central Florida ABSTRACT Analysts, in particular SAS programmers, are often tasked

More information